#[non_exhaustive]pub enum RevocationVerdict {
Revoked {
effect: RevocationEffect,
boundary: DateTime<Utc>,
revocation: SourcedRevocation,
placement: Option<DateTime<Utc>>,
},
NotRevoked {
complete: bool,
registry_attested_checked: bool,
observed_at: Option<SystemTime>,
},
Unknown {
reason: UnknownReason,
detail: String,
},
}Expand description
The typed revocation verdict for one context’s signing key.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Revoked
A verified, in-scope revocation names the signing key.
Fields
effect: RevocationEffect§7 step 2 (RevocationEffect::PreCompromise, accepted), step 3
(RevocationEffect::Revoked) or step 4
(RevocationEffect::Unplaceable).
revocation: SourcedRevocationThe revocation that fixes boundary, attributed.
NotRevoked
No verified, in-scope revocation names the signing key.
Fields
complete: booltrue when §8 discovery was configured and every configured
lookup completed untruncated (live or from a fresh cached
absence). false when discovery was off: only the caller’s
known revocations and cached facts were consulted.
registry_attested_checked: boolWhether the registry-attested class was among the completed lookups.
observed_at: Option<SystemTime>When a cached complete absence answered at least one lookup,
the earliest time such an absence was observed; None when
every lookup ran live.
Unknown
Discovery could not establish the key’s status.
Implementations§
Source§impl RevocationVerdict
impl RevocationVerdict
Sourcepub fn is_refusal(&self) -> bool
pub fn is_refusal(&self) -> bool
Whether the verdict refuses the context (§7 step 3 or 4).
Sourcepub fn is_unknown(&self) -> bool
pub fn is_unknown(&self) -> bool
Whether the verdict is unknown.
Sourcepub fn unknown_reason(&self) -> Option<UnknownReason>
pub fn unknown_reason(&self) -> Option<UnknownReason>
The unknown reason, if any.
Trait Implementations§
Source§impl Clone for RevocationVerdict
impl Clone for RevocationVerdict
Source§impl Debug for RevocationVerdict
impl Debug for RevocationVerdict
impl Eq for RevocationVerdict
Source§impl PartialEq for RevocationVerdict
impl PartialEq for RevocationVerdict
impl StructuralPartialEq for RevocationVerdict
Auto Trait Implementations§
impl Freeze for RevocationVerdict
impl RefUnwindSafe for RevocationVerdict
impl Send for RevocationVerdict
impl Sync for RevocationVerdict
impl Unpin for RevocationVerdict
impl UnsafeUnpin for RevocationVerdict
impl UnwindSafe for RevocationVerdict
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.