Struct store_flows::Expire
source · pub struct Expire {
pub kind: ExpireKind,
pub value: i64,
}Expand description
The expire object to pass to set() function
If kind is ExpireKind::Ex, value should be the seconds before expiration. If kind is ExpireKind::ExAt, value should be the timestamp-seconds at which the key will expire.
Fields§
§kind: ExpireKind§value: i64Auto Trait Implementations§
impl RefUnwindSafe for Expire
impl Send for Expire
impl Sync for Expire
impl Unpin for Expire
impl UnwindSafe for Expire
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