pub enum AuthBasicError {
InvalidAuthorizationHeader,
InvalidScheme(String),
InvalidBase64Value(String),
InvalidUtf8Value(String),
}
Expand description
Authorization Header Error
Variants§
InvalidAuthorizationHeader
The HTTP Authorization header value is invalid
InvalidScheme(String)
The HTTP Authorization header contains a valid
value but the scheme is other than Basic
InvalidBase64Value(String)
The value expected as a base64 encoded String
is not
encoded correctly
InvalidUtf8Value(String)
The provided binary is not a valid UTF-8 character
Trait Implementations§
Source§impl Debug for AuthBasicError
impl Debug for AuthBasicError
Source§impl Display for AuthBasicError
impl Display for AuthBasicError
Source§impl From<DecodeError> for AuthBasicError
impl From<DecodeError> for AuthBasicError
Source§fn from(decode_error: DecodeError) -> Self
fn from(decode_error: DecodeError) -> Self
Converts to this type from the input type.
Source§impl From<FromUtf8Error> for AuthBasicError
impl From<FromUtf8Error> for AuthBasicError
Source§fn from(utf8_err: FromUtf8Error) -> Self
fn from(utf8_err: FromUtf8Error) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for AuthBasicError
impl RefUnwindSafe for AuthBasicError
impl Send for AuthBasicError
impl Sync for AuthBasicError
impl Unpin for AuthBasicError
impl UnwindSafe for AuthBasicError
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