Enum pkcs1::Error [−][src]
#[non_exhaustive]
pub enum Error {
Asn1(Error),
Crypto,
FileNotFound,
Io,
Pem(Error),
PermissionDenied,
Version,
}
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.
Asn1(Error)
ASN.1 DER-related errors.
Tuple Fields of Asn1
0: Error
Cryptographic errors.
These can be used by RSA implementations to signal that a key is invalid for cryptographic reasons. This means the document parsed correctly, but one of the values contained within was invalid, e.g. a number expected to be a prime was not a prime.
This is supported on crate feature
std
only.File not found error.
This is supported on crate feature
std
only.I/O errors.
Pem(Error)
PEM encoding errors.
Tuple Fields of Pem
0: Error
This is supported on crate feature
std
only.Permission denied reading file.
Version errors
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Error
impl UnwindSafe for Error
Blanket Implementations
Mutably borrows from an owned value. Read more