pub struct VerifyReport {
pub ok: bool,
pub records: usize,
pub head: Option<LedgerHead>,
pub head_file_checked: bool,
pub errors: Vec<String>,
pub warnings: Vec<String>,
pub unacknowledged: Vec<RecordSummary>,
}Fields§
§ok: boolChain, sequence numbers, hashes, and head checks all passed (errors is empty).
records: usize§head: Option<LedgerHead>§head_file_checked: booltrue when a <store>.head file exists and matched the chain.
errors: Vec<String>Integrity findings; any entry makes ok false. Records removed or rewritten, an unreadable
head file, records past the head that no write acknowledged, a pinned head mismatch.
warnings: Vec<String>Non-integrity problems: events that could not be applied, a torn tail, no head file.
unacknowledged: Vec<RecordSummary>Records past the head file that no hikmah write acknowledged (appended by another program,
an older binary, or left by a crash before the head update). Writes are refused until they
are inspected and accepted with MemoryStore::accept_tail.
Trait Implementations§
Source§impl Clone for VerifyReport
impl Clone for VerifyReport
Source§impl Debug for VerifyReport
impl Debug for VerifyReport
Auto Trait Implementations§
impl Freeze for VerifyReport
impl RefUnwindSafe for VerifyReport
impl Send for VerifyReport
impl Sync for VerifyReport
impl Unpin for VerifyReport
impl UnsafeUnpin for VerifyReport
impl UnwindSafe for VerifyReport
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