Enum tor_cert::CertEncodeError
source · #[non_exhaustive]pub enum CertEncodeError {
KeyMismatch,
TooManyExtensions,
ExtensionTooLong,
MissingField(&'static str),
Bytes(EncodeError),
}
Available on crate feature
encode
only.Expand description
An error related to signing or encoding a certificate
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.
KeyMismatch
This certificate contains the public key that it is supposed to be signed by, and the provided signing private key isn’t it.
TooManyExtensions
The certificate contains more than 255 extensions.
ExtensionTooLong
Some extension had a length of over 2^16.
MissingField(&'static str)
A mandatory field was not provided.
Bytes(EncodeError)
We encountered a problem when encoding the certificate: probably, that some length field would have to be longer than its maximum. This is probably a bug in the calling code.
Trait Implementations§
source§impl Clone for CertEncodeError
impl Clone for CertEncodeError
source§fn clone(&self) -> CertEncodeError
fn clone(&self) -> CertEncodeError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for CertEncodeError
impl Debug for CertEncodeError
source§impl Display for CertEncodeError
impl Display for CertEncodeError
source§impl Error for CertEncodeError
impl Error for CertEncodeError
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<EncodeError> for CertEncodeError
impl From<EncodeError> for CertEncodeError
source§fn from(source: EncodeError) -> Self
fn from(source: EncodeError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for CertEncodeError
impl Send for CertEncodeError
impl Sync for CertEncodeError
impl Unpin for CertEncodeError
impl !UnwindSafe for CertEncodeError
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
source§impl<E> ErrorReport for Ewhere
E: Error + 'static,
impl<E> ErrorReport for Ewhere
E: Error + 'static,
source§fn report(&self) -> Report<ReportHelper<'_>>
fn report(&self) -> Report<ReportHelper<'_>>
Return an object that displays the error and its causes