pub enum ParseError {
Invalid,
MissingScheme,
MissingField(&'static str),
ToStrError(ToStrError),
Base64DecodeError(DecodeError),
Utf8Error(Utf8Error),
}
Expand description
Possible errors while parsing Authorization
header.
Should not be used directly unless you are implementing your own authentication scheme.
Variants
Invalid
Header value is malformed
MissingScheme
Authentication scheme is missing
MissingField(&'static str)
Required authentication field is missing
ToStrError(ToStrError)
Unable to convert header into the str
Base64DecodeError(DecodeError)
Malformed base64 string
Utf8Error(Utf8Error)
Malformed UTF-8 string
Trait Implementations
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for ParseError
impl Send for ParseError
impl Sync for ParseError
impl Unpin for ParseError
impl UnwindSafe for ParseError
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