Struct actix_web_httpauth::extractors::AuthenticationError [−][src]
pub struct AuthenticationError<C: Challenge> { /* fields omitted */ }
Expand description
Authentication error returned by authentication extractors.
Different extractors may extend AuthenticationError
implementation
in order to provide access to inner challenge fields.
Implementations
Extended error customization for HTTP Bearer
auth.
Attach Error
to the current Authentication error.
Error status code will be changed to the one provided by the kind
Error.
Attach error description to the current Authentication error.
Attach error URI to the current Authentication error.
It is up to implementor to provide properly formed absolute URI.
Creates new authentication error from the provided challenge
.
By default returned error will resolve into the HTTP 401
status code.
Returns mutable reference to the inner challenge instance.
Returns mutable reference to the inner status code.
Can be used to override returned status code, but by default this lib tries to stick to the RFC, so it might be unreasonable.
Trait Implementations
impl<T> From<T> for AuthenticationError<<T as AuthExtractorConfig>::Inner> where
T: AuthExtractorConfig,
impl<T> From<T> for AuthenticationError<<T as AuthExtractorConfig>::Inner> where
T: AuthExtractorConfig,
Auto Trait Implementations
impl<C> RefUnwindSafe for AuthenticationError<C> where
C: RefUnwindSafe,
impl<C> Send for AuthenticationError<C>
impl<C> Sync for AuthenticationError<C>
impl<C> Unpin for AuthenticationError<C> where
C: Unpin,
impl<C> UnwindSafe for AuthenticationError<C> where
C: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more