Enum Applied
pub enum Applied {
Done,
Removed {
in_flight: bool,
},
Absent,
}Expand description
Outcome of SessionState::apply: whether the mutation took effect.
Variants§
Done
A store or clear was applied (always recorded).
Removed
A remove found and removed an entry.
Absent
A remove found nothing; the op should not be recorded.
Implementations§
§impl Applied
impl Applied
pub const fn should_record(self) -> bool
pub const fn should_record(self) -> bool
Returns true if the op should be journaled.
Absent ops are not journaled because they did not change state.
Trait Implementations§
impl Copy for Applied
impl Eq for Applied
impl StructuralPartialEq for Applied
Auto Trait Implementations§
impl Freeze for Applied
impl RefUnwindSafe for Applied
impl Send for Applied
impl Sync for Applied
impl Unpin for Applied
impl UnwindSafe for Applied
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more