pub struct AuthError { /* private fields */ }Expand description
An error that occurred during authentication or verification.
Implementations§
Source§impl AuthError
impl AuthError
Sourcepub fn new(kind: AuthErrorKind, message: impl Into<String>) -> Self
pub fn new(kind: AuthErrorKind, message: impl Into<String>) -> Self
Creates a new authentication error.
Sourcepub const fn kind(&self) -> AuthErrorKind
pub const fn kind(&self) -> AuthErrorKind
Returns the kind of error.
Sourcepub const fn is_invalid_tag(&self) -> bool
pub const fn is_invalid_tag(&self) -> bool
Returns true if this is an invalid tag error.
Trait Implementations§
Source§impl Error for AuthError
impl Error for AuthError
1.30.0 · 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 From<AuthErrorKind> for AuthError
impl From<AuthErrorKind> for AuthError
Source§fn from(kind: AuthErrorKind) -> Self
fn from(kind: AuthErrorKind) -> Self
Converts to this type from the input type.
impl Eq for AuthError
impl StructuralPartialEq for AuthError
Auto Trait Implementations§
impl Freeze for AuthError
impl RefUnwindSafe for AuthError
impl Send for AuthError
impl Sync for AuthError
impl Unpin for AuthError
impl UnsafeUnpin for AuthError
impl UnwindSafe for AuthError
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).