#[non_exhaustive]pub enum CertificationError {
MissingCreationTime(Certification),
InvalidCertification(Certification, Error),
IssuerRevoked(Certification),
BornLater(Certification, SystemTime),
CertificationExpired(Certification, SystemTime, SystemTime),
TargetNotLive(Certification, SystemTime, Error),
TargetNotValid(Certification, SystemTime, Error),
IssuerHardRevoked(Certification, ReasonForRevocation, Vec<u8>),
IssuerSoftRevoked(Certification, SystemTime, ReasonForRevocation, Vec<u8>),
TargetHardRevoked(Certification, ReasonForRevocation, Vec<u8>),
TargetSoftRevoked(Certification, SystemTime, ReasonForRevocation, Vec<u8>),
}
Expand description
Certification
specific error codes.
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.
MissingCreationTime(Certification)
No creation time.
The certification is invalid, because it does not include the required CreationTime subpacket.
InvalidCertification(Certification, Error)
The certification violates the policy.
IssuerRevoked(Certification)
BornLater(Certification, SystemTime)
CertificationExpired(Certification, SystemTime, SystemTime)
The certification is expired (1) as of the reference time (2).
TargetNotLive(Certification, SystemTime, Error)
TargetNotValid(Certification, SystemTime, Error)
IssuerHardRevoked(Certification, ReasonForRevocation, Vec<u8>)
IssuerSoftRevoked(Certification, SystemTime, ReasonForRevocation, Vec<u8>)
TargetHardRevoked(Certification, ReasonForRevocation, Vec<u8>)
TargetSoftRevoked(Certification, SystemTime, ReasonForRevocation, Vec<u8>)
Trait Implementations§
Source§impl Debug for CertificationError
impl Debug for CertificationError
Source§impl Display for CertificationError
impl Display for CertificationError
Source§impl Error for CertificationError
impl Error for CertificationError
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()
Auto Trait Implementations§
impl !Freeze for CertificationError
impl RefUnwindSafe for CertificationError
impl Send for CertificationError
impl Sync for CertificationError
impl Unpin for CertificationError
impl UnwindSafe for CertificationError
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