pub enum TokenRotationError {
TokenRejected(BearerTokenError),
StateUnavailable,
}Expand description
Bearer-token validation or rotation failure.
Variants§
TokenRejected(BearerTokenError)
The replacement bearer token was rejected before state changed.
The credential state could not be read or changed.
Trait Implementations§
Source§impl Clone for TokenRotationError
impl Clone for TokenRotationError
Source§fn clone(&self) -> TokenRotationError
fn clone(&self) -> TokenRotationError
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 TokenRotationError
Source§impl Debug for TokenRotationError
impl Debug for TokenRotationError
Source§impl Display for TokenRotationError
impl Display for TokenRotationError
impl Eq for TokenRotationError
Source§impl Error for TokenRotationError
impl Error for TokenRotationError
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 TokenRotationError
impl PartialEq for TokenRotationError
impl StructuralPartialEq for TokenRotationError
Auto Trait Implementations§
impl Freeze for TokenRotationError
impl RefUnwindSafe for TokenRotationError
impl Send for TokenRotationError
impl Sync for TokenRotationError
impl Unpin for TokenRotationError
impl UnsafeUnpin for TokenRotationError
impl UnwindSafe for TokenRotationError
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