pub enum ReplayCheckLevel {
NotPerformed,
PackageLocal,
LocalJournal,
HubOrg,
}Expand description
Replay-check level surfaced by verify. Lets the printer say exactly
what was checked, instead of overclaiming or underclaiming.
The progression is monotonic in trust strength: each level subsumes the previous. A verifier should report the strongest level it successfully checked, never falling back silently to a weaker one just because the stronger one was unavailable.
Variants§
NotPerformed
No replay check ran (e.g. no approvals in the package).
PackageLocal
The package itself was scanned for duplicate uses of the same nonce. v0.9.6’s behavior. No external state consulted.
LocalJournal
A local Approval Use Journal was consulted. PR 2’s outcome.
HubOrg
A signed Hub / org checkpoint was consulted on top of local. PR 6.
Implementations§
Trait Implementations§
Source§impl Clone for ReplayCheckLevel
impl Clone for ReplayCheckLevel
Source§fn clone(&self) -> ReplayCheckLevel
fn clone(&self) -> ReplayCheckLevel
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ReplayCheckLevel
impl Debug for ReplayCheckLevel
Source§impl<'de> Deserialize<'de> for ReplayCheckLevel
impl<'de> Deserialize<'de> for ReplayCheckLevel
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 ReplayCheckLevel
impl PartialEq for ReplayCheckLevel
Source§fn eq(&self, other: &ReplayCheckLevel) -> bool
fn eq(&self, other: &ReplayCheckLevel) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ReplayCheckLevel
impl Serialize for ReplayCheckLevel
impl Copy for ReplayCheckLevel
impl Eq for ReplayCheckLevel
impl StructuralPartialEq for ReplayCheckLevel
Auto Trait Implementations§
impl Freeze for ReplayCheckLevel
impl RefUnwindSafe for ReplayCheckLevel
impl Send for ReplayCheckLevel
impl Sync for ReplayCheckLevel
impl Unpin for ReplayCheckLevel
impl UnsafeUnpin for ReplayCheckLevel
impl UnwindSafe for ReplayCheckLevel
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§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.