pub enum HttpAuthBasicError {
MissingPrefix,
InvalidBase64(DecodeError),
InvalidUtf8,
MissingColon,
}Expand description
Failure causes when parsing a Basic authorization value.
Variants§
MissingPrefix
The value does not start with the basic scheme prefix.
InvalidBase64(DecodeError)
The credentials payload is not valid base64.
InvalidUtf8
The decoded credentials are not valid UTF-8.
MissingColon
The decoded credentials carry no colon separator.
Trait Implementations§
Source§impl Debug for HttpAuthBasicError
impl Debug for HttpAuthBasicError
Source§impl Display for HttpAuthBasicError
impl Display for HttpAuthBasicError
Source§impl Error for HttpAuthBasicError
impl Error for HttpAuthBasicError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for HttpAuthBasicError
impl RefUnwindSafe for HttpAuthBasicError
impl Send for HttpAuthBasicError
impl Sync for HttpAuthBasicError
impl Unpin for HttpAuthBasicError
impl UnsafeUnpin for HttpAuthBasicError
impl UnwindSafe for HttpAuthBasicError
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