pub enum Error {
Invalid,
MissingScheme,
MissingField(&'static str),
Base64DecodeError(DecodeError),
Utf8Error(Utf8Error),
}
Variants§
Invalid
Header value is malformed
MissingScheme
Authentication scheme is missing
MissingField(&'static str)
Required authentication field is missing
Base64DecodeError(DecodeError)
Unable to convert header into the str Malformed base64 string
Utf8Error(Utf8Error)
Malformed UTF-8 string
Trait Implementations§
Source§impl From<DecodeError> for Error
impl From<DecodeError> for Error
Source§fn from(decode_error: DecodeError) -> Self
fn from(decode_error: DecodeError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
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