pub struct IntegrityReport {
pub checks_total: u64,
pub checks_passed: u64,
pub bitflips_detected: u64,
pub corruption_events: u64,
pub invariant_violations: u64,
pub failures: Vec<String>,
}Expand description
Results from integrity validation
Fields§
§checks_total: u64Total checks performed
checks_passed: u64Checks that passed
bitflips_detected: u64Detected bitflips (single bit errors)
corruption_events: u64Multi-bit corruption events
invariant_violations: u64Algebraic invariant violations
failures: Vec<String>Specific failure messages
Implementations§
Source§impl IntegrityReport
impl IntegrityReport
pub fn new() -> Self
Sourcepub fn record_bitflip(&mut self)
pub fn record_bitflip(&mut self)
Record detected bitflip
Sourcepub fn record_corruption(&mut self)
pub fn record_corruption(&mut self)
Record corruption event
Sourcepub fn record_invariant_violation(&mut self, msg: impl Into<String>)
pub fn record_invariant_violation(&mut self, msg: impl Into<String>)
Record invariant violation
Trait Implementations§
Source§impl Clone for IntegrityReport
impl Clone for IntegrityReport
Source§fn clone(&self) -> IntegrityReport
fn clone(&self) -> IntegrityReport
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 IntegrityReport
impl Debug for IntegrityReport
Source§impl Default for IntegrityReport
impl Default for IntegrityReport
Source§fn default() -> IntegrityReport
fn default() -> IntegrityReport
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for IntegrityReport
impl RefUnwindSafe for IntegrityReport
impl Send for IntegrityReport
impl Sync for IntegrityReport
impl Unpin for IntegrityReport
impl UnwindSafe for IntegrityReport
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