Enum rcgen::RcgenError
source · [−]#[non_exhaustive]
pub enum RcgenError {
Show 13 variants
CouldNotParseCertificate,
CouldNotParseCertificationRequest,
CouldNotParseKeyPair,
InvalidNameType,
KeyGenerationUnavailable,
UnsupportedExtension,
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
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
InvalidNameType
Invalid subject alternative name type
KeyGenerationUnavailable
There is no support for generating keys for the given algorithm
UnsupportedExtension
Unsupported extension requested in CSR
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
sourceimpl Debug for RcgenError
impl Debug for RcgenError
sourceimpl Display for RcgenError
impl Display for RcgenError
sourceimpl Error for RcgenError
impl Error for RcgenError
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
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
sourceimpl From<KeyRejected> for RcgenError
impl From<KeyRejected> for RcgenError
sourcefn from(err: KeyRejected) -> Self
fn from(err: KeyRejected) -> Self
Performs the conversion.
sourceimpl From<Unspecified> for RcgenError
impl From<Unspecified> for RcgenError
sourcefn from(_unspecified: Unspecified) -> Self
fn from(_unspecified: Unspecified) -> Self
Performs the conversion.
sourceimpl PartialEq<RcgenError> for RcgenError
impl PartialEq<RcgenError> for RcgenError
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &RcgenError) -> bool
fn ne(&self, other: &RcgenError) -> bool
This method tests for !=
.
impl Eq for RcgenError
impl StructuralEq for RcgenError
impl StructuralPartialEq for RcgenError
Auto Trait Implementations
impl RefUnwindSafe for RcgenError
impl Send for RcgenError
impl Sync for RcgenError
impl Unpin for RcgenError
impl UnwindSafe for RcgenError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more