pub enum SetIfHashCondition {
PresentAndNotHashEqual(Vec<u8>),
PresentAndHashEqual(Vec<u8>),
AbsentOrHashEqual(Vec<u8>),
AbsentOrNotHashEqual(Vec<u8>),
Unconditional,
}Expand description
Condition for set-if-hash operations (comparing hashes instead of full values).
Variants§
PresentAndNotHashEqual(Vec<u8>)
Set only if the key exists and the hash of its current value does not match the provided hash.
PresentAndHashEqual(Vec<u8>)
Set only if the key exists and the hash of its current value matches the provided hash.
AbsentOrHashEqual(Vec<u8>)
Set if the key does not exist, or if it exists and the hash of its current value matches the provided hash.
AbsentOrNotHashEqual(Vec<u8>)
Set if the key does not exist, or if it exists and the hash of its current value does not match the provided hash.
Unconditional
Unconditionally set the value.
Trait Implementations§
Source§impl Clone for SetIfHashCondition
impl Clone for SetIfHashCondition
Source§fn clone(&self) -> SetIfHashCondition
fn clone(&self) -> SetIfHashCondition
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SetIfHashCondition
impl RefUnwindSafe for SetIfHashCondition
impl Send for SetIfHashCondition
impl Sync for SetIfHashCondition
impl Unpin for SetIfHashCondition
impl UnsafeUnpin for SetIfHashCondition
impl UnwindSafe for SetIfHashCondition
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