pub struct PruningVerifier;Expand description
Verification utilities for pruning safety.
Implementations§
Source§impl PruningVerifier
impl PruningVerifier
Sourcepub fn verify_no_resurrection<S: DAGStore>(
store: &S,
pruned: &[Hash],
_snapshot: &Snapshot,
) -> Result<(), String>
pub fn verify_no_resurrection<S: DAGStore>( store: &S, pruned: &[Hash], _snapshot: &Snapshot, ) -> Result<(), String>
Verify that no “live” items would be resurrected after pruning.
This checks that all remove operations that reference pruned nodes are still correctly represented in the post-prune state.
Auto Trait Implementations§
impl Freeze for PruningVerifier
impl RefUnwindSafe for PruningVerifier
impl Send for PruningVerifier
impl Sync for PruningVerifier
impl Unpin for PruningVerifier
impl UnwindSafe for PruningVerifier
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