pub enum BasicError {
MissingPrefix,
InvalidBase64(DecodeError),
InvalidUtf8,
MissingColon,
}Expand description
Failure causes when parsing a Basic authorization value.
Variants§
Trait Implementations§
Source§impl Debug for BasicError
impl Debug for BasicError
Source§impl Display for BasicError
impl Display for BasicError
Source§impl Error for BasicError
impl Error for BasicError
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 BasicError
impl RefUnwindSafe for BasicError
impl Send for BasicError
impl Sync for BasicError
impl Unpin for BasicError
impl UnsafeUnpin for BasicError
impl UnwindSafe for BasicError
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