Enum redis_driver::ExpireOption
source · [−]pub enum ExpireOption {
None,
Nx,
Xx,
Gt,
Lt,
}
Expand description
Options for the expire command
Variants
None
No option
Nx
Set expiry only when the key has no expiry
Xx
Set expiry only when the key has no expiry
Gt
Set expiry only when the new expiry is greater than current one
Lt
Set expiry only when the new expiry is less than current one
Trait Implementations
sourceimpl Default for ExpireOption
impl Default for ExpireOption
sourceimpl IntoArgs for ExpireOption
impl IntoArgs for ExpireOption
fn into_args(self, args: CommandArgs) -> CommandArgs
fn num_args(&self) -> usize
Auto Trait Implementations
impl RefUnwindSafe for ExpireOption
impl Send for ExpireOption
impl Sync for ExpireOption
impl Unpin for ExpireOption
impl UnwindSafe for ExpireOption
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