pub enum OfflineState {
Online,
Offline {
valid_until: Option<SystemTime>,
remaining: Duration,
},
}Expand description
Whether the last validation reached the server.
Variants§
Online
The last validation reached the server.
Offline
The server could not be reached: the app runs on the stored token.
Fields
§
valid_until: Option<SystemTime>Expiry of the stored token, or None when there is no valid token.
Trait Implementations§
Source§impl Clone for OfflineState
impl Clone for OfflineState
impl Copy for OfflineState
Source§impl Debug for OfflineState
impl Debug for OfflineState
impl Eq for OfflineState
Source§impl From<OfflineState> for OfflineStateDto
impl From<OfflineState> for OfflineStateDto
Source§fn from(state: OfflineState) -> Self
fn from(state: OfflineState) -> Self
Converts to this type from the input type.
Source§impl PartialEq for OfflineState
impl PartialEq for OfflineState
impl StructuralPartialEq for OfflineState
Auto Trait Implementations§
impl Freeze for OfflineState
impl RefUnwindSafe for OfflineState
impl Send for OfflineState
impl Sync for OfflineState
impl Unpin for OfflineState
impl UnsafeUnpin for OfflineState
impl UnwindSafe for OfflineState
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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.