pub enum CredsError {
InvalidCredentialsFormat {
message: String,
},
InvalidBasicCredentials,
InvalidStaticTokenCredentials,
ConfigError {
message: String,
},
PasswordHash {
message: String,
},
RandomBytes {
message: String,
},
}Expand description
Errors that can occur during Basic Authentication.
Variants§
InvalidCredentialsFormat
InvalidBasicCredentials
InvalidStaticTokenCredentials
ConfigError
PasswordHash
RandomBytes
Trait Implementations§
Source§impl Debug for CredsError
impl Debug for CredsError
Source§impl Display for CredsError
impl Display for CredsError
Source§impl Error for CredsError
impl Error for CredsError
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 ErrorCompat for CredsError
impl ErrorCompat for CredsError
Source§fn iter_chain(&self) -> ChainCompat<'_, '_>where
Self: AsErrorSource,
fn iter_chain(&self) -> ChainCompat<'_, '_>where
Self: AsErrorSource,
Returns an iterator for traversing the chain of errors,
starting with the current error
and continuing with recursive calls to
Error::source. Read moreSource§impl<__T0> IntoError<CredsError> for ConfigSnafu<__T0>
impl<__T0> IntoError<CredsError> for ConfigSnafu<__T0>
Source§fn into_error(self, error: Self::Source) -> CredsError
fn into_error(self, error: Self::Source) -> CredsError
Combine the information to produce the error
Source§impl IntoError<CredsError> for InvalidBasicCredentialsSnafu
impl IntoError<CredsError> for InvalidBasicCredentialsSnafu
Source§fn into_error(self, error: Self::Source) -> CredsError
fn into_error(self, error: Self::Source) -> CredsError
Combine the information to produce the error
Source§impl<__T0> IntoError<CredsError> for InvalidCredentialsFormatSnafu<__T0>
impl<__T0> IntoError<CredsError> for InvalidCredentialsFormatSnafu<__T0>
Source§fn into_error(self, error: Self::Source) -> CredsError
fn into_error(self, error: Self::Source) -> CredsError
Combine the information to produce the error
Source§impl IntoError<CredsError> for InvalidStaticTokenCredentialsSnafu
impl IntoError<CredsError> for InvalidStaticTokenCredentialsSnafu
Source§fn into_error(self, error: Self::Source) -> CredsError
fn into_error(self, error: Self::Source) -> CredsError
Combine the information to produce the error
Source§impl<__T0> IntoError<CredsError> for PasswordHashSnafu<__T0>
impl<__T0> IntoError<CredsError> for PasswordHashSnafu<__T0>
Source§fn into_error(self, error: Self::Source) -> CredsError
fn into_error(self, error: Self::Source) -> CredsError
Combine the information to produce the error
Source§impl<__T0> IntoError<CredsError> for RandomBytesSnafu<__T0>
impl<__T0> IntoError<CredsError> for RandomBytesSnafu<__T0>
Source§fn into_error(self, error: Self::Source) -> CredsError
fn into_error(self, error: Self::Source) -> CredsError
Combine the information to produce the error
Source§impl ToErrorPresentation for CredsError
impl ToErrorPresentation for CredsError
fn to_error_presentation(&self) -> ErrorPresentation
Source§impl ToHttpStatus for CredsError
impl ToHttpStatus for CredsError
fn to_http_status(&self) -> StatusCode
Auto Trait Implementations§
impl Freeze for CredsError
impl RefUnwindSafe for CredsError
impl Send for CredsError
impl Sync for CredsError
impl Unpin for CredsError
impl UnsafeUnpin for CredsError
impl UnwindSafe for CredsError
Blanket Implementations§
Source§impl<T> AsErrorSource for Twhere
T: Error + 'static,
impl<T> AsErrorSource for Twhere
T: Error + 'static,
Source§fn as_error_source(&self) -> &(dyn Error + 'static)
fn as_error_source(&self) -> &(dyn Error + 'static)
For maximum effectiveness, this needs to be called as a method
to benefit from Rust’s automatic dereferencing of method
receivers.
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
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.