pub enum Exists {
Always,
IfMissing,
IfPresent,
}Expand description
Whether a SET should go ahead given what is already there.
Variants§
Always
Store whatever is there. Plain SET.
IfMissing
Only if the key is absent. SET NX, and SETNX.
IfPresent
Only if the key is present. SET XX.
Trait Implementations§
impl Copy for Exists
impl Eq for Exists
impl StructuralPartialEq for Exists
Auto Trait Implementations§
impl Freeze for Exists
impl RefUnwindSafe for Exists
impl Send for Exists
impl Sync for Exists
impl Unpin for Exists
impl UnsafeUnpin for Exists
impl UnwindSafe for Exists
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