pub enum VerifiedTrustState {
FullChainVerified {
ceiling: ClaimCeiling,
witnesses: Vec<WitnessSummary>,
},
Partial {
reasons: Vec<String>,
witnesses: Vec<WitnessSummary>,
},
Broken {
edge: BrokenEdge,
witnesses: Vec<WitnessSummary>,
},
}Expand description
One of three outcomes per ADR 0041 §“Stable failure taxonomy”.
Variants§
FullChainVerified
Every required witness class is present, disjoint, fresh, well-tiered, and signature-valid. The verifier promotes the claim to the given effective ceiling.
Fields
ceiling: ClaimCeilingEffective ceiling the claim is allowed at.
witnesses: Vec<WitnessSummary>Summary of every witness that contributed.
Partial
Some required witness class is missing or insufficient, but no edge outright failed. Advisory-only; cannot promote.
Fields
witnesses: Vec<WitnessSummary>Summary of every witness that did pass.
Broken
A required axis outright failed (digest mismatch, stale, domain overlap, signature invalid, ceiling below required, policy fail-closed).
Fields
edge: BrokenEdgeExact failing edge with stable invariant name.
witnesses: Vec<WitnessSummary>Summary of every witness that was supplied. Useful for diagnosis.
Implementations§
Source§impl VerifiedTrustState
impl VerifiedTrustState
Sourcepub const fn is_full_chain_verified(&self) -> bool
pub const fn is_full_chain_verified(&self) -> bool
True iff this is FullChainVerified.
Sourcepub const fn is_partial(&self) -> bool
pub const fn is_partial(&self) -> bool
True iff this is Partial { .. }.
Trait Implementations§
Source§impl Clone for VerifiedTrustState
impl Clone for VerifiedTrustState
Source§fn clone(&self) -> VerifiedTrustState
fn clone(&self) -> VerifiedTrustState
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for VerifiedTrustState
impl Debug for VerifiedTrustState
Source§impl<'de> Deserialize<'de> for VerifiedTrustState
impl<'de> Deserialize<'de> for VerifiedTrustState
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for VerifiedTrustState
impl PartialEq for VerifiedTrustState
Source§fn eq(&self, other: &VerifiedTrustState) -> bool
fn eq(&self, other: &VerifiedTrustState) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for VerifiedTrustState
impl Serialize for VerifiedTrustState
impl Eq for VerifiedTrustState
impl StructuralPartialEq for VerifiedTrustState
Auto Trait Implementations§
impl Freeze for VerifiedTrustState
impl RefUnwindSafe for VerifiedTrustState
impl Send for VerifiedTrustState
impl Sync for VerifiedTrustState
impl Unpin for VerifiedTrustState
impl UnsafeUnpin for VerifiedTrustState
impl UnwindSafe for VerifiedTrustState
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.