pub struct IntegrityReport {
pub events_checked: usize,
pub events_valid: usize,
pub corrupt_events: Vec<CorruptEvent>,
pub signatures_checked: usize,
pub signatures_valid: usize,
pub signature_errors: Vec<SignatureError>,
}Expand description
Result of an integrity check
Fields§
§events_checked: usizeTotal events checked
events_valid: usizeEvents that passed all checks
corrupt_events: Vec<CorruptEvent>Events with corruption issues
signatures_checked: usizeSignature verification results (if signatures were checked)
signatures_valid: usizeValid signatures
signature_errors: Vec<SignatureError>Invalid or missing signatures
Implementations§
Source§impl IntegrityReport
impl IntegrityReport
Sourcepub fn is_healthy(&self) -> bool
pub fn is_healthy(&self) -> bool
Check if the report indicates all is well
Sourcepub fn corruption_count(&self) -> usize
pub fn corruption_count(&self) -> usize
Get the number of corrupt events
Sourcepub fn signature_error_count(&self) -> usize
pub fn signature_error_count(&self) -> usize
Get the number of signature errors
Trait Implementations§
Source§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