#[non_exhaustive]pub enum Error {
Show 16 variants
AlgorithmUnknown,
AlgorithmUnsupported {
algorithm: Algorithm,
},
CertificateFieldInvalid(Field),
CertificateValidation,
Crypto,
Decrypted,
Ecdsa(Error),
Encoding(Error),
Encrypted,
FormatEncoding,
Io(ErrorKind),
Namespace,
PublicKey,
Time,
TrailingData {
remaining: usize,
},
Version {
number: u32,
},
}
Expand description
Error type.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
AlgorithmUnknown
Unknown algorithm.
This is returned when an algorithm is completely unknown to this crate.
AlgorithmUnsupported
Unsupported algorithm.
This is typically returned when an algorithm is recognized, but the relevant crate features to support it haven’t been enabled.
It may also be returned in the event an algorithm is inappropriate for a given usage pattern or context.
CertificateFieldInvalid(Field)
alloc
only.Certificate field is invalid or already set.
CertificateValidation
Certificate validation failed.
Crypto
Cryptographic errors.
Decrypted
Cannot perform operation on decrypted private key.
Ecdsa(Error)
ecdsa
only.ECDSA key encoding errors.
Encoding(Error)
Encoding errors.
Encrypted
Cannot perform operation on encrypted private key.
FormatEncoding
Other format encoding errors.
Io(ErrorKind)
std
only.Input/output errors.
Namespace
Namespace invalid.
PublicKey
Public key is incorrect.
Time
Invalid timestamp (e.g. in a certificate)
TrailingData
Unexpected trailing data at end of message.
Version
Unsupported version.
Trait Implementations§
source§impl Error for Error
Available on crate feature std
only.
impl Error for Error
std
only.source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
source§impl From<FromUtf8Error> for Error
Available on crate feature alloc
only.
impl From<FromUtf8Error> for Error
alloc
only.source§fn from(err: FromUtf8Error) -> Error
fn from(err: FromUtf8Error) -> Error
source§impl From<LabelError> for Error
impl From<LabelError> for Error
source§fn from(err: LabelError) -> Error
fn from(err: LabelError) -> Error
source§impl From<SystemTimeError> for Error
Available on crate feature std
only.
impl From<SystemTimeError> for Error
std
only.source§fn from(_: SystemTimeError) -> Error
fn from(_: SystemTimeError) -> Error
source§impl From<TryFromSliceError> for Error
impl From<TryFromSliceError> for Error
source§fn from(_: TryFromSliceError) -> Error
fn from(_: TryFromSliceError) -> Error
impl Eq for Error
impl StructuralPartialEq for Error
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)