pub enum Error<U = Infallible> {
Extract,
Jwt(Error),
Custom(U),
}
Expand description
Errors that can occur during authentication.
Variants§
Extract
Failed to extract authentication data from the request.
Jwt(Error)
JWT error.
Custom(U)
Custom error.
Implementations§
Trait Implementations§
Source§impl<U> IntoResponse for Error<U>where
U: IntoResponse,
impl<U> IntoResponse for Error<U>where
U: IntoResponse,
Source§fn into_response(self) -> Response
fn into_response(self) -> Response
Create a response.
Auto Trait Implementations§
impl<U> Freeze for Error<U>where
U: Freeze,
impl<U = Infallible> !RefUnwindSafe for Error<U>
impl<U> Send for Error<U>where
U: Send,
impl<U> Sync for Error<U>where
U: Sync,
impl<U> Unpin for Error<U>where
U: Unpin,
impl<U = Infallible> !UnwindSafe for Error<U>
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