Enum redis_driver::SetCondition
source · [−]pub enum SetCondition {
None,
NX,
XX,
}
Expand description
Condition option for the set_with_options
command
Variants
None
No condition
NX
Only set the key if it does not already exist.
XX
Only set the key if it already exist.
Trait Implementations
sourceimpl Default for SetCondition
impl Default for SetCondition
sourceimpl IntoArgs for SetCondition
impl IntoArgs for SetCondition
fn into_args(self, args: CommandArgs) -> CommandArgs
fn num_args(&self) -> usize
Auto Trait Implementations
impl RefUnwindSafe for SetCondition
impl Send for SetCondition
impl Sync for SetCondition
impl Unpin for SetCondition
impl UnwindSafe for SetCondition
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more