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
sourceimpl Clone for CertEncodeError
impl Clone for CertEncodeError
sourcefn clone(&self) -> CertEncodeError
fn clone(&self) -> CertEncodeError
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for CertEncodeError
impl Debug for CertEncodeError
sourceimpl Display for CertEncodeError
impl Display for CertEncodeError
sourceimpl Error for CertEncodeError
impl Error for CertEncodeError
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<EncodeError> for CertEncodeError
impl From<EncodeError> for CertEncodeError
sourcefn 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
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