pub enum TtlResult {
Seconds(u64),
Milliseconds(u64),
NoExpiry,
NotFound,
}Expand description
Result of a TTL query, matching Redis semantics.
Variants§
Seconds(u64)
Key exists and has a TTL. Returns remaining seconds.
Milliseconds(u64)
Key exists and has a TTL. Returns remaining milliseconds.
NoExpiry
Key exists but has no expiration set.
NotFound
Key does not exist.
Trait Implementations§
impl Eq for TtlResult
impl StructuralPartialEq for TtlResult
Auto Trait Implementations§
impl Freeze for TtlResult
impl RefUnwindSafe for TtlResult
impl Send for TtlResult
impl Sync for TtlResult
impl Unpin for TtlResult
impl UnwindSafe for TtlResult
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