Enum rcgen::RcgenError
source · #[non_exhaustive]pub enum RcgenError {
CouldNotParseCertificate,
CouldNotParseCertificationRequest,
CouldNotParseKeyPair,
KeyGenerationUnavailable,
UnsupportedSignatureAlgorithm,
RingUnspecified,
RingKeyRejected(&'static str),
CertificateKeyPairMismatch,
Time,
PemError(PemError),
RemoteKeyError,
}
Expand description
The error type of the rcgen crate
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.
CouldNotParseCertificate
The given certificate couldn’t be parsed
CouldNotParseCertificationRequest
The given certificate signing request couldn’t be parsed
CouldNotParseKeyPair
The given key pair couldn’t be parsed
There is no support for generating keys for the given algorithm
UnsupportedSignatureAlgorithm
The requested signature algorithm is not supported
RingUnspecified
Unspecified ring
error
RingKeyRejected(&'static str)
The ring
library rejected the key upon loading
CertificateKeyPairMismatch
The provided certificate’s signature algorithm is incompatible with the given key pair
Time
Time conversion related errors
PemError(PemError)
Error from the pem crate
This variant is only available if rcgen is built with the “pem” feature
RemoteKeyError
Error generated by a remote key operation
Trait Implementations§
source§impl Debug for RcgenError
impl Debug for RcgenError
source§impl Display for RcgenError
impl Display for RcgenError
source§impl Error for RcgenError
impl Error for RcgenError
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<KeyRejected> for RcgenError
impl From<KeyRejected> for RcgenError
source§fn from(err: KeyRejected) -> Self
fn from(err: KeyRejected) -> Self
Converts to this type from the input type.
source§impl From<PemError> for RcgenError
impl From<PemError> for RcgenError
source§impl From<Unspecified> for RcgenError
impl From<Unspecified> for RcgenError
source§fn from(_unspecified: Unspecified) -> Self
fn from(_unspecified: Unspecified) -> Self
Converts to this type from the input type.
source§impl PartialEq for RcgenError
impl PartialEq for RcgenError
source§fn eq(&self, other: &RcgenError) -> bool
fn eq(&self, other: &RcgenError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for RcgenError
impl StructuralPartialEq for RcgenError
Auto Trait Implementations§
impl Freeze for RcgenError
impl RefUnwindSafe for RcgenError
impl Send for RcgenError
impl Sync for RcgenError
impl Unpin for RcgenError
impl UnwindSafe for RcgenError
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