pub struct Recovery {
pub checkpoint_size: u64,
pub replayed: u64,
pub quarantined: u64,
pub consistency: Vec<[u8; 32]>,
}Expand description
What recovery proved after a crash: the checkpoint it started from, the
entries replayed beyond it, and that the recovered tree is consistent
with the checkpoint by rfc9162::verify_consistency.
The checkpoint recovery starts from is the largest size a trusted key signed, read from a record the store’s writer cannot reach: a store that can rewrite its own tree state or hand back an older signed checkpoint would otherwise shorten the log and keep every proof valid.
Fields§
§checkpoint_size: u64Tree size the last signed checkpoint covered.
replayed: u64Entries found beyond it and replayed into the tree.
quarantined: u64Entries found beyond it that could not be replayed (torn, or past a gap) and were quarantined.
consistency: Vec<[u8; 32]>The consistency path from the checkpoint’s tree to the recovered one.
Trait Implementations§
impl Eq for Recovery
impl StructuralPartialEq for Recovery
Auto Trait Implementations§
impl Freeze for Recovery
impl RefUnwindSafe for Recovery
impl Send for Recovery
impl Sync for Recovery
impl Unpin for Recovery
impl UnsafeUnpin for Recovery
impl UnwindSafe for Recovery
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