#[non_exhaustive]
pub enum Error {
}Expand description
Error type.
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.
Algorithm
Algorithm-related errors.
CertificateFieldInvalid(Field)
Available on crate feature
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)
Available on crate feature
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)
Available on crate feature
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
Available on crate feature
std only.1.30.0 · 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<FromUtf8Error> for Error
Available on crate feature alloc only.
impl From<FromUtf8Error> for Error
Available on crate feature
alloc only.source§fn from(err: FromUtf8Error) -> Error
fn from(err: FromUtf8Error) -> Error
Converts to this type from the input type.
source§impl From<SystemTimeError> for Error
Available on crate feature std only.
impl From<SystemTimeError> for Error
Available on crate feature
std only.source§fn from(_: SystemTimeError) -> Error
fn from(_: SystemTimeError) -> Error
Converts to this type from the input type.
source§impl From<TryFromSliceError> for Error
impl From<TryFromSliceError> for Error
source§fn from(_: TryFromSliceError) -> Error
fn from(_: TryFromSliceError) -> Error
Converts to this type from the input type.