pub enum TokenErrorKind {
Fatal,
Soft {
cached_token: AppCheckToken,
},
Throttled {
retry_after: Duration,
cached_token: Option<AppCheckToken>,
},
}Variants§
Fatal
No cached token is usable; callers should treat the failure as fatal.
Soft
A previous token is still valid and included for best-effort calls.
Fields
§
cached_token: AppCheckTokenThrottled
Backend throttled requests; retry after the provided duration.
Trait Implementations§
Source§impl Clone for TokenErrorKind
impl Clone for TokenErrorKind
Source§fn clone(&self) -> TokenErrorKind
fn clone(&self) -> TokenErrorKind
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for TokenErrorKind
impl RefUnwindSafe for TokenErrorKind
impl Send for TokenErrorKind
impl Sync for TokenErrorKind
impl Unpin for TokenErrorKind
impl UnwindSafe for TokenErrorKind
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