#[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
Fields
remaining: usize
Number of bytes of remaining data at end of message.
Unexpected trailing data at end of message.
Version
Fields
number: u32
Version number.
Unsupported version.
Trait Implementations
sourceimpl Error for Error
Available on crate feature std
only.
impl Error for Error
Available on crate feature
std
only.1.30.0 · sourcefn 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 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
sourceimpl From<FromUtf8Error> for Error
Available on crate feature alloc
only.
impl From<FromUtf8Error> for Error
Available on crate feature
alloc
only.sourcefn from(err: FromUtf8Error) -> Error
fn from(err: FromUtf8Error) -> Error
Converts to this type from the input type.
sourceimpl From<SystemTimeError> for Error
Available on crate feature std
only.
impl From<SystemTimeError> for Error
Available on crate feature
std
only.sourcefn from(_: SystemTimeError) -> Error
fn from(_: SystemTimeError) -> Error
Converts to this type from the input type.
sourceimpl From<TryFromSliceError> for Error
impl From<TryFromSliceError> for Error
sourcefn from(_: TryFromSliceError) -> Error
fn from(_: TryFromSliceError) -> Error
Converts to this type from the input type.
impl Copy for Error
impl Eq for Error
impl StructuralEq for Error
impl StructuralPartialEq for Error
Auto Trait Implementations
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more