pub enum WindowState {
Ok,
NotYetValid,
Expired,
Inverted,
}Expand description
Where now falls against a validity window.
Variants§
Ok
Inside the window (allowing the skew at each edge).
NotYetValid
validFrom is more than the skew ahead of now.
Expired
now is more than the skew past validUntil.
Inverted
validFrom is after validUntil: the window is empty.
Implementations§
Trait Implementations§
Source§impl Clone for WindowState
impl Clone for WindowState
impl Copy for WindowState
Source§impl Debug for WindowState
impl Debug for WindowState
impl Eq for WindowState
Source§impl PartialEq for WindowState
impl PartialEq for WindowState
impl StructuralPartialEq for WindowState
Auto Trait Implementations§
impl Forget for WindowState
impl Freeze for WindowState
impl Move for WindowState
impl RefUnwindSafe for WindowState
impl Send for WindowState
impl Sync for WindowState
impl Unpin for WindowState
impl UnsafeUnpin for WindowState
impl UnwindSafe for WindowState
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.