pub enum UnverifiedReason {
NoProvenance,
ChainTampered,
ChainLinkBroken,
StoreUnavailable,
}Expand description
Why a memory read could not be verified against the provenance chain.
Variants§
NoProvenance
No entry has ever been appended for the (store, key) pair.
The memory entry predates governance (or bypassed it).
ChainTampered
A stored entry exists but its recomputed hash disagrees with the hash field. Chain tamper detected.
ChainLinkBroken
A stored entry exists but its prev_hash does not line up with
the entry that sits before it. Chain linkage broken.
The provenance store is unavailable (mutex poisoned, SQLite
error, etc.). Operators must treat this as fail-closed: the
memory read surfaces the Unverified verdict so callers can
deny rather than silently accept.
Implementations§
Trait Implementations§
Source§impl Clone for UnverifiedReason
impl Clone for UnverifiedReason
Source§fn clone(&self) -> UnverifiedReason
fn clone(&self) -> UnverifiedReason
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for UnverifiedReason
impl Debug for UnverifiedReason
Source§impl<'de> Deserialize<'de> for UnverifiedReason
impl<'de> Deserialize<'de> for UnverifiedReason
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for UnverifiedReason
impl PartialEq for UnverifiedReason
Source§impl Serialize for UnverifiedReason
impl Serialize for UnverifiedReason
impl Eq for UnverifiedReason
impl StructuralPartialEq for UnverifiedReason
Auto Trait Implementations§
impl Freeze for UnverifiedReason
impl RefUnwindSafe for UnverifiedReason
impl Send for UnverifiedReason
impl Sync for UnverifiedReason
impl Unpin for UnverifiedReason
impl UnsafeUnpin for UnverifiedReason
impl UnwindSafe for UnverifiedReason
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
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.