pub enum ExpireOption {
Nx,
Xx,
Gt,
Lt,
}Variants§
Nx
Set expiry only when the key has no expiry
Xx
Set expiry only when the key has an existing 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§
Auto Trait Implementations§
impl Freeze for ExpireOption
impl RefUnwindSafe for ExpireOption
impl Send for ExpireOption
impl Sync for ExpireOption
impl Unpin for ExpireOption
impl UnwindSafe for ExpireOption
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