pub enum CasExpectation {
Exact(Vec<u8>),
Present,
}Expand description
Expected value shape for single-key compare-and-set operations.
Variants§
Exact(Vec<u8>)
Match one exact current value.
Present
Match any live value, but fail when the key is absent/tombstoned.
Trait Implementations§
Source§impl Clone for CasExpectation
impl Clone for CasExpectation
Source§fn clone(&self) -> CasExpectation
fn clone(&self) -> CasExpectation
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 moreSource§impl Debug for CasExpectation
impl Debug for CasExpectation
Source§impl<'de> Deserialize<'de> for CasExpectation
impl<'de> Deserialize<'de> for CasExpectation
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for CasExpectation
Source§impl PartialEq for CasExpectation
impl PartialEq for CasExpectation
Source§fn eq(&self, other: &CasExpectation) -> bool
fn eq(&self, other: &CasExpectation) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for CasExpectation
impl Serialize for CasExpectation
impl StructuralPartialEq for CasExpectation
Auto Trait Implementations§
impl Freeze for CasExpectation
impl RefUnwindSafe for CasExpectation
impl Send for CasExpectation
impl Sync for CasExpectation
impl Unpin for CasExpectation
impl UnsafeUnpin for CasExpectation
impl UnwindSafe for CasExpectation
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