pub struct AuditCollector { /* private fields */ }Expand description
Collector for verification audit trails.
Implementations§
Source§impl AuditCollector
impl AuditCollector
Sourcepub fn record(&mut self, path: VerificationPath) -> &HashChainEntry
pub fn record(&mut self, path: VerificationPath) -> &HashChainEntry
Record a verification decision.
Sourcepub fn entries(&self) -> &[HashChainEntry]
pub fn entries(&self) -> &[HashChainEntry]
Get all entries.
Sourcepub fn stats(&self) -> &AuditStats
pub fn stats(&self) -> &AuditStats
Get statistics.
Sourcepub fn verify_chain(&self) -> ChainVerification
pub fn verify_chain(&self) -> ChainVerification
Verify hash chain integrity.
Sourcepub fn recent(&self, n: usize) -> Vec<&HashChainEntry>
pub fn recent(&self, n: usize) -> Vec<&HashChainEntry>
Get recent entries.
Sourcepub fn failures(&self) -> Vec<&HashChainEntry>
pub fn failures(&self) -> Vec<&HashChainEntry>
Get failed verifications.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AuditCollector
impl RefUnwindSafe for AuditCollector
impl Send for AuditCollector
impl Sync for AuditCollector
impl Unpin for AuditCollector
impl UnsafeUnpin for AuditCollector
impl UnwindSafe for AuditCollector
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more