pub enum Op {
Put {
key: String,
value: Value,
},
Delete {
key: String,
},
Evict {
key: String,
},
}Expand description
One change recorded in a commit. The ops of a commit are its change set
and, taken together across history, the append-only event log (DESIGN §4.1).
Variants§
Put
Write a key.
Delete
Remove a key.
Evict
Remove a key to stay inside the memory budget (DESIGN §4.4).
Recorded distinctly from Op::Delete so that eviction is visible in
the log and reversible by time travel.
Implementations§
Trait Implementations§
impl StructuralPartialEq for Op
Auto Trait Implementations§
impl !Freeze for Op
impl Forget for Op
impl Move for Op
impl RefUnwindSafe for Op
impl Send for Op
impl Sync for Op
impl Unpin for Op
impl UnsafeUnpin for Op
impl UnwindSafe for Op
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