pub enum Compare<'a> {
Equal(&'a [u8]),
NotEqual(&'a [u8]),
DigestEqual(u64),
DigestNotEqual(u64),
}Expand description
What a conditional write compares the current value against.
Variants§
Equal(&'a [u8])
IFEQ: the value is exactly these bytes.
NotEqual(&'a [u8])
IFNE: the value is not exactly these bytes, or there is no value.
DigestEqual(u64)
IFDEQ: the value’s digest is this number.
DigestNotEqual(u64)
IFDNE: the value’s digest is not this number, or there is no value.
Implementations§
Trait Implementations§
impl<'a> Copy for Compare<'a>
impl<'a> Eq for Compare<'a>
impl<'a> StructuralPartialEq for Compare<'a>
Auto Trait Implementations§
impl<'a> Freeze for Compare<'a>
impl<'a> RefUnwindSafe for Compare<'a>
impl<'a> Send for Compare<'a>
impl<'a> Sync for Compare<'a>
impl<'a> Unpin for Compare<'a>
impl<'a> UnsafeUnpin for Compare<'a>
impl<'a> UnwindSafe for Compare<'a>
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