Enum actix_web_httpauth::headers::authorization::ParseError
[−]
[src]
pub enum ParseError {
Invalid,
MissingScheme,
MissingField(&'static str),
ToStrError(ToStrError),
Base64DecodeError(DecodeError),
Utf8Error(Utf8Error),
}Possible errors while parsing Authorization header.
Should not be used directly unless you are implementing your own authentication scheme.
Variants
InvalidHeader value is malformed
MissingSchemeAuthentication scheme is missing
MissingField(&'static str)Required authentication field is missing
ToStrError(ToStrError)Base64DecodeError(DecodeError)Utf8Error(Utf8Error)
Trait Implementations
impl Debug for ParseError[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result[src]
Formats the value using the given formatter. Read more
impl Display for ParseError[src]
fn fmt(&self, f: &mut Formatter) -> Result[src]
Formats the value using the given formatter. Read more
impl Error for ParseError[src]
fn description(&self) -> &str[src]
A short description of the error. Read more
fn cause(&self) -> Option<&Error>[src]
The lower-level cause of this error, if any. Read more
impl From<ToStrError> for ParseError[src]
fn from(e: ToStrError) -> Self[src]
Performs the conversion.
impl From<DecodeError> for ParseError[src]
fn from(e: DecodeError) -> Self[src]
Performs the conversion.