pub enum Operation<Key, Value> {
Set(Key, Value),
Dereference(Key),
Reference(Key),
InsertTree(Key, NewNode),
ReferenceTree(Key),
DereferenceTree(Key),
}
Expand description
Different operations allowed for a commit. Behavior may differs depending on column configuration.
Variants§
Set(Key, Value)
Insert or update the value for a given key.
Dereference(Key)
Dereference at a given key, resulting in either removal of a key value or decrement of its reference count counter.
Reference(Key)
Increment the reference count counter of an existing value for a given key. If no value exists for the key, this operation is skipped.
InsertTree(Key, NewNode)
Insert a new tree into a MultiTree column using root key and node structure.
ReferenceTree(Key)
Increment the reference count of a tree (at root Key) from a MultiTree column.
DereferenceTree(Key)
Dereference an existing tree (at root Key) from a MultiTree column, resulting in either removal of the tree or decrement of its reference count.
Implementations§
Trait Implementations§
Source§impl<Key: Ord, Value: Eq> Ord for Operation<Key, Value>
impl<Key: Ord, Value: Eq> Ord for Operation<Key, Value>
Source§impl<Key: Ord, Value: Eq> PartialOrd for Operation<Key, Value>
impl<Key: Ord, Value: Eq> PartialOrd for Operation<Key, Value>
impl<Key: Eq, Value: Eq> Eq for Operation<Key, Value>
impl<Key, Value> StructuralPartialEq for Operation<Key, Value>
Auto Trait Implementations§
impl<Key, Value> Freeze for Operation<Key, Value>
impl<Key, Value> RefUnwindSafe for Operation<Key, Value>where
Key: RefUnwindSafe,
Value: RefUnwindSafe,
impl<Key, Value> Send for Operation<Key, Value>
impl<Key, Value> Sync for Operation<Key, Value>
impl<Key, Value> Unpin for Operation<Key, Value>
impl<Key, Value> UnwindSafe for Operation<Key, Value>where
Key: UnwindSafe,
Value: UnwindSafe,
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