#[non_exhaustive]pub enum ErrorAuth {
Invalido,
Expirado,
NoDisponible,
}Expand description
Why a token did not become a Principal. The first two are the caller’s (401), the last is
ours (503): the adapter logs the cause, the API answers the code.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Invalido
Malformed, badly signed, for another issuer or audience, or an unknown session.
Expirado
Was valid once: the token or the session expired.
NoDisponible
Could not be checked: the provider or the database is unreachable.
Trait Implementations§
impl Copy for ErrorAuth
impl Eq for ErrorAuth
Source§impl Error for ErrorAuth
impl Error for ErrorAuth
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()
impl StructuralPartialEq for ErrorAuth
Auto Trait Implementations§
impl Forget for ErrorAuth
impl Freeze for ErrorAuth
impl Move for ErrorAuth
impl RefUnwindSafe for ErrorAuth
impl Send for ErrorAuth
impl Sync for ErrorAuth
impl Unpin for ErrorAuth
impl UnsafeUnpin for ErrorAuth
impl UnwindSafe for ErrorAuth
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