pub enum Operation<Key, Value> {
Set(Key, Value),
Dereference(Key),
Reference(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.
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: PartialEq, Value: PartialEq> PartialEq<Operation<Key, Value>> for Operation<Key, Value>
impl<Key: PartialEq, Value: PartialEq> PartialEq<Operation<Key, Value>> for Operation<Key, Value>
source§impl<Key: Ord, Value: Eq> PartialOrd<Operation<Key, Value>> for Operation<Key, Value>
impl<Key: Ord, Value: Eq> PartialOrd<Operation<Key, Value>> for Operation<Key, Value>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl<Key: Eq, Value: Eq> Eq for Operation<Key, Value>
impl<Key, Value> StructuralEq for Operation<Key, Value>
impl<Key, Value> StructuralPartialEq for Operation<Key, Value>
Auto Trait Implementations§
impl<Key, Value> RefUnwindSafe for Operation<Key, Value>where Key: RefUnwindSafe, Value: RefUnwindSafe,
impl<Key, Value> Send for Operation<Key, Value>where Key: Send, Value: Send,
impl<Key, Value> Sync for Operation<Key, Value>where Key: Sync, Value: Sync,
impl<Key, Value> Unpin for Operation<Key, Value>where Key: Unpin, Value: Unpin,
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