pub enum TokenRefreshError {
TokenRejected(BearerTokenError),
StaleGeneration,
CredentialMismatch,
StateUnavailable,
GenerationExhausted,
}Expand description
Compare-and-swap bearer refresh failure.
Variants§
TokenRejected(BearerTokenError)
The replacement bearer token was rejected before state changed.
StaleGeneration
A newer rotation or refresh superseded this handoff.
CredentialMismatch
The refresh handoff belongs to a different credential lifecycle.
The credential state could not be changed.
GenerationExhausted
The monotonic credential generation cannot advance.
Trait Implementations§
Source§impl Clone for TokenRefreshError
impl Clone for TokenRefreshError
Source§fn clone(&self) -> TokenRefreshError
fn clone(&self) -> TokenRefreshError
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 TokenRefreshError
Source§impl Debug for TokenRefreshError
impl Debug for TokenRefreshError
Source§impl Display for TokenRefreshError
impl Display for TokenRefreshError
impl Eq for TokenRefreshError
Source§impl Error for TokenRefreshError
impl Error for TokenRefreshError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for TokenRefreshError
impl PartialEq for TokenRefreshError
impl StructuralPartialEq for TokenRefreshError
Auto Trait Implementations§
impl Freeze for TokenRefreshError
impl RefUnwindSafe for TokenRefreshError
impl Send for TokenRefreshError
impl Sync for TokenRefreshError
impl Unpin for TokenRefreshError
impl UnsafeUnpin for TokenRefreshError
impl UnwindSafe for TokenRefreshError
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