pub struct IntegrityReport {
pub failures: Vec<IntegrityFailure>,
pub pages_checked: u64,
pub elapsed: Duration,
}Expand description
Structured result of an integrity check.
The public driver returns this inside Ok(_) whenever the walk
completes (whether or not it found any failures). An Err
outer result means the walk could not finish — an I/O failure,
not a content-level integrity violation.
Fields§
§failures: Vec<IntegrityFailure>Every detected violation, in walker-encounter order.
pages_checked: u64Pages the walker actually inspected (header + every tree
node + every freelist link). Provides a sanity-check vs
page_count: a check that ran without errors but visited
noticeably fewer pages than the file holds suggests a
reachability problem (the IntegrityFailure::OrphanPage
failures cover the concrete cases).
elapsed: DurationWall-clock duration the walk took. Useful for the operator to know whether the check finished within a maintenance window.
Implementations§
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 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for IntegrityReport
impl RefUnwindSafe for IntegrityReport
impl Send for IntegrityReport
impl Sync for IntegrityReport
impl Unpin for IntegrityReport
impl UnsafeUnpin 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