Struct actix_web_httpauth::extractors::AuthenticationError [−][src]
pub struct AuthenticationError<C: Challenge> { /* fields omitted */ }
Authentication error returned by Auth extractor.
Different extractors may extend AuthenticationError implementation
in order to provide access to inner challenge fields.
Methods
impl<C: Challenge> AuthenticationError<C>[src]
impl<C: Challenge> AuthenticationError<C>pub fn new(challenge: C) -> AuthenticationError<C>[src]
pub fn new(challenge: C) -> AuthenticationError<C>pub fn challenge_mut(&mut self) -> &mut C[src]
pub fn challenge_mut(&mut self) -> &mut Cpub fn status_code_mut(&mut self) -> &mut StatusCode[src]
pub fn status_code_mut(&mut self) -> &mut StatusCodeimpl AuthenticationError<Bearer>[src]
impl AuthenticationError<Bearer>Extended error customization for HTTP Bearer auth.
pub fn with_error(self, kind: Error) -> Self[src]
pub fn with_error(self, kind: Error) -> Selfpub fn with_error_description<T: Into<String>>(self, desc: T) -> Self[src]
pub fn with_error_description<T: Into<String>>(self, desc: T) -> Selfpub fn with_error_uri<T: Into<String>>(self, uri: T) -> Self[src]
pub fn with_error_uri<T: Into<String>>(self, uri: T) -> SelfTrait Implementations
impl<C: Debug + Challenge> Debug for AuthenticationError<C>[src]
impl<C: Debug + Challenge> Debug for AuthenticationError<C>fn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl<C: Challenge> Display for AuthenticationError<C>[src]
impl<C: Challenge> Display for AuthenticationError<C>fn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl<C: 'static + Challenge> Error for AuthenticationError<C>[src]
impl<C: 'static + Challenge> Error for AuthenticationError<C>fn description(&self) -> &str[src]
fn description(&self) -> &strThis method is soft-deprecated. Read more
fn cause(&self) -> Option<&Error>1.0.0[src]
fn cause(&self) -> Option<&Error>1.0.0
[src]The lower-level cause of this error, if any. Read more
impl<C: 'static + Challenge> ResponseError for AuthenticationError<C>[src]
impl<C: 'static + Challenge> ResponseError for AuthenticationError<C>fn error_response(&self) -> HttpResponse[src]
fn error_response(&self) -> HttpResponseCreate response for error Read more
impl<T> From<T> for AuthenticationError<<T as ExtractorConfig>::Inner> where
T: ExtractorConfig, [src]
impl<T> From<T> for AuthenticationError<<T as ExtractorConfig>::Inner> where
T: ExtractorConfig, Auto Trait Implementations
impl<C> Send for AuthenticationError<C>
impl<C> Send for AuthenticationError<C>impl<C> Sync for AuthenticationError<C>
impl<C> Sync for AuthenticationError<C>