Enum http_auth_basic::AuthBasicError
source · [−]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
sourceimpl Debug for AuthBasicError
impl Debug for AuthBasicError
sourceimpl Display for AuthBasicError
impl Display for AuthBasicError
sourceimpl From<DecodeError> for AuthBasicError
impl From<DecodeError> for AuthBasicError
sourcefn from(decode_error: DecodeError) -> Self
fn from(decode_error: DecodeError) -> Self
Converts to this type from the input type.
sourceimpl From<FromUtf8Error> for AuthBasicError
impl From<FromUtf8Error> for AuthBasicError
sourcefn from(utf8_err: FromUtf8Error) -> Self
fn from(utf8_err: FromUtf8Error) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl RefUnwindSafe for AuthBasicError
impl Send for AuthBasicError
impl Sync for AuthBasicError
impl Unpin for AuthBasicError
impl UnwindSafe for AuthBasicError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more