pub enum AuthError {
NoToken,
NoTokenSigner,
RefreshAuthorizerCall(Error),
RefreshAuthorizerDenied(Error),
TokenCreation(CreationError),
TokenParse(ParseError),
TokenValidation(ValidationError),
}
Expand description
Crate wide error type
if #[cfg(debug_assertions)]
is true
the wrapped errors in (Internal, RefreshAuthorizerDenied, TokenCreation, TokenParse, TokenValidation)
are in included in the error message.
Variants§
NoToken
NoTokenSigner
RefreshAuthorizerCall(Error)
RefreshAuthorizerDenied(Error)
TokenCreation(CreationError)
TokenParse(ParseError)
TokenValidation(ValidationError)
Trait Implementations§
Source§impl From<CreationError> for AuthError
impl From<CreationError> for AuthError
Source§fn from(val: CreationError) -> Self
fn from(val: CreationError) -> Self
Converts to this type from the input type.
Source§impl From<ParseError> for AuthError
impl From<ParseError> for AuthError
Source§fn from(val: ParseError) -> Self
fn from(val: ParseError) -> Self
Converts to this type from the input type.
Source§impl From<ValidationError> for AuthError
impl From<ValidationError> for AuthError
Source§fn from(val: ValidationError) -> Self
fn from(val: ValidationError) -> Self
Converts to this type from the input type.
Source§impl ResponseError for AuthError
impl ResponseError for AuthError
Source§fn status_code(&self) -> StatusCode
fn status_code(&self) -> StatusCode
Returns appropriate status code for error. Read more
Source§fn error_response(&self) -> HttpResponse<BoxBody>
fn error_response(&self) -> HttpResponse<BoxBody>
Creates full response for error. Read more
Auto Trait Implementations§
impl Freeze for AuthError
impl !RefUnwindSafe for AuthError
impl !Send for AuthError
impl !Sync for AuthError
impl Unpin 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