pub enum SetMode {
Always,
IfNotExists,
IfExists,
}Expand description
How SET treats a key that already exists or is missing.
Variants§
Always
Write the key either way.
IfNotExists
Write only when the key is absent (NX).
IfExists
Write only when the key exists (XX).
Trait Implementations§
impl Copy for SetMode
impl Eq for SetMode
impl StructuralPartialEq for SetMode
Auto Trait Implementations§
impl Freeze for SetMode
impl RefUnwindSafe for SetMode
impl Send for SetMode
impl Sync for SetMode
impl Unpin for SetMode
impl UnsafeUnpin for SetMode
impl UnwindSafe for SetMode
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