pub enum CredentialState {
Fresh,
RefreshWindow,
Grace,
Expired,
}Expand description
Lifecycle state of a cached credential.
Variants§
Fresh
Credential is within its primary validity period. Serve directly.
RefreshWindow
Credential is aging — a background refresh should be attempted, but the cached value can still be served if refresh fails.
Grace
Credential is past the refresh window but within the grace period. Serve the stale value as a last resort while re-acquisition is attempted.
Expired
Credential has fully expired. Must re-acquire from the external source.
Trait Implementations§
Source§impl Clone for CredentialState
impl Clone for CredentialState
Source§fn clone(&self) -> CredentialState
fn clone(&self) -> CredentialState
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 CredentialState
Source§impl Debug for CredentialState
impl Debug for CredentialState
impl Eq for CredentialState
Source§impl PartialEq for CredentialState
impl PartialEq for CredentialState
Source§fn eq(&self, other: &CredentialState) -> bool
fn eq(&self, other: &CredentialState) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CredentialState
Auto Trait Implementations§
impl Freeze for CredentialState
impl RefUnwindSafe for CredentialState
impl Send for CredentialState
impl Sync for CredentialState
impl Unpin for CredentialState
impl UnsafeUnpin for CredentialState
impl UnwindSafe for CredentialState
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.