pub enum KeyCertificateError {
Io(Error),
InvalidCertificateVersion(u32),
InvalidFingerprint(String),
InvalidTimestamp(String),
InvalidRsaKey(String),
InvalidSignature(String),
MissingRequiredField(String),
}Expand description
Errors that can occur when parsing directory key certificates.
Key certificates bind directory authority signing keys to their long-term identity keys.
Variants§
Io(Error)
IO error occurred while reading certificate data.
InvalidCertificateVersion(u32)
Certificate version is not supported.
InvalidFingerprint(String)
Fingerprint format is invalid.
InvalidTimestamp(String)
Timestamp format is invalid.
InvalidRsaKey(String)
RSA key is malformed.
InvalidSignature(String)
Cryptographic signature is invalid.
MissingRequiredField(String)
Required field is missing from certificate.
Trait Implementations§
Source§impl Debug for KeyCertificateError
impl Debug for KeyCertificateError
Source§impl Display for KeyCertificateError
impl Display for KeyCertificateError
Source§impl Error for KeyCertificateError
impl Error for KeyCertificateError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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<Error> for KeyCertificateError
impl From<Error> for KeyCertificateError
Source§impl From<KeyCertificateError> for DescriptorError
impl From<KeyCertificateError> for DescriptorError
Source§fn from(source: KeyCertificateError) -> Self
fn from(source: KeyCertificateError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for KeyCertificateError
impl !RefUnwindSafe for KeyCertificateError
impl Send for KeyCertificateError
impl Sync for KeyCertificateError
impl Unpin for KeyCertificateError
impl !UnwindSafe for KeyCertificateError
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