pub struct ReplayCheck {
pub level: ReplayCheckLevel,
pub use_number: Option<u32>,
pub max_uses: Option<u32>,
pub passed: Option<bool>,
pub details: Option<String>,
}Expand description
Result of the replay check that verify ran. Carries the level that was achieved plus enough context for printers / reports to render “use 1/1” without re-resolving state.
Fields§
§level: ReplayCheckLevel§use_number: Option<u32>Which use of the grant was observed. Some when a journal returned the count; None when no journal was consulted.
max_uses: Option<u32>Mirror of the grant’s max_actions at the time of check.
passed: Option<bool>True when the check passed. False or absent means a violation
(duplicate use, journal tampered, etc.). The details string
carries the human-readable reason.
details: Option<String>One-line summary shown in verify output and the report.
Implementations§
Source§impl ReplayCheck
impl ReplayCheck
pub fn not_performed() -> Self
pub fn package_local(passed: bool, details: impl Into<String>) -> Self
Trait Implementations§
Source§impl Clone for ReplayCheck
impl Clone for ReplayCheck
Source§fn clone(&self) -> ReplayCheck
fn clone(&self) -> ReplayCheck
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 ReplayCheck
impl Debug for ReplayCheck
Source§impl<'de> Deserialize<'de> for ReplayCheck
impl<'de> Deserialize<'de> for ReplayCheck
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
Auto Trait Implementations§
impl Freeze for ReplayCheck
impl RefUnwindSafe for ReplayCheck
impl Send for ReplayCheck
impl Sync for ReplayCheck
impl Unpin for ReplayCheck
impl UnsafeUnpin for ReplayCheck
impl UnwindSafe for ReplayCheck
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