pub enum TokenExpiry {
Unknown,
Fresh,
Expiring {
days: i64,
},
Expired,
}Expand description
The lifecycle state of the pasted __client cookie relative to now.
Variants§
Unknown
The cookie could not be decoded, so its deadline is unknown.
Fresh
The cookie is valid and comfortably beyond the warning window.
Expiring
The cookie expires within the warning window, in days (rounded up).
Expired
The cookie has already expired.
Trait Implementations§
Source§impl Clone for TokenExpiry
impl Clone for TokenExpiry
Source§fn clone(&self) -> TokenExpiry
fn clone(&self) -> TokenExpiry
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TokenExpiry
Source§impl Debug for TokenExpiry
impl Debug for TokenExpiry
impl Eq for TokenExpiry
Source§impl PartialEq for TokenExpiry
impl PartialEq for TokenExpiry
Source§fn eq(&self, other: &TokenExpiry) -> bool
fn eq(&self, other: &TokenExpiry) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TokenExpiry
Auto Trait Implementations§
impl Freeze for TokenExpiry
impl RefUnwindSafe for TokenExpiry
impl Send for TokenExpiry
impl Sync for TokenExpiry
impl Unpin for TokenExpiry
impl UnsafeUnpin for TokenExpiry
impl UnwindSafe for TokenExpiry
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