#[non_exhaustive]pub enum BasicAuthError {
HeaderNotFound,
InvalidHeadeValueFormat,
UnknownSchema(String),
InvalidBase64(InvalidBase64),
InvalidUtf8(InvalidUtf8),
InvalidCredentialsFormat,
}Expand description
Error returned when basic_auth_credentials() fails.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
HeaderNotFound
Basic authentication header not found.
InvalidHeadeValueFormat
Invalid basic auth header value format.
UnknownSchema(String)
Unknown auth schema.
InvalidBase64(InvalidBase64)
Invalid Base-64 encoding.
InvalidUtf8(InvalidUtf8)
Invalid UTF-8 encoding.
InvalidCredentialsFormat
Invalid credentials format.
Trait Implementations§
Source§impl Clone for BasicAuthError
impl Clone for BasicAuthError
Source§fn clone(&self) -> BasicAuthError
fn clone(&self) -> BasicAuthError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BasicAuthError
impl Debug for BasicAuthError
Source§impl Display for BasicAuthError
impl Display for BasicAuthError
Source§impl Error for BasicAuthError
impl Error for BasicAuthError
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()
Source§impl PartialEq for BasicAuthError
impl PartialEq for BasicAuthError
impl Eq for BasicAuthError
impl StructuralPartialEq for BasicAuthError
Auto Trait Implementations§
impl Freeze for BasicAuthError
impl RefUnwindSafe for BasicAuthError
impl Send for BasicAuthError
impl Sync for BasicAuthError
impl Unpin for BasicAuthError
impl UnwindSafe for BasicAuthError
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