Enum hawk::crypto::CryptoError
source · pub enum CryptoError {
UnsupportedDigest(DigestAlgorithm),
Other(Error),
}
Variants§
UnsupportedDigest(DigestAlgorithm)
The configured cryptographer does not support the digest algorithm
specified. This should only happen for custom Cryptographer
implementations
Other(Error)
The configured cryptographer implementation failed to perform an operation in some way.
Trait Implementations§
source§impl Debug for CryptoError
impl Debug for CryptoError
source§impl Display for CryptoError
impl Display for CryptoError
source§impl Error for CryptoError
impl Error for CryptoError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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 From<CryptoError> for Error
impl From<CryptoError> for Error
source§fn from(e: CryptoError) -> Self
fn from(e: CryptoError) -> Self
Converts to this type from the input type.
source§impl From<Infallible> for CryptoError
impl From<Infallible> for CryptoError
source§fn from(_: Infallible) -> Self
fn from(_: Infallible) -> Self
Converts to this type from the input type.
source§impl From<Unspecified> for CryptoError
impl From<Unspecified> for CryptoError
source§fn from(_: Unspecified) -> Self
fn from(_: Unspecified) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for CryptoError
impl Send for CryptoError
impl Sync for CryptoError
impl Unpin for CryptoError
impl UnwindSafe for CryptoError
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