pub struct PruningResult {
pub nodes_pruned: usize,
pub pruned_cids: Vec<Hash>,
pub snapshot_root: Option<Hash>,
pub skipped: Vec<(Hash, String)>,
pub completed: bool,
}Expand description
Result of a pruning operation.
Fields§
§nodes_pruned: usizeNumber of nodes pruned.
pruned_cids: Vec<Hash>CIDs of pruned nodes.
snapshot_root: Option<Hash>The snapshot root used as the pruning boundary.
skipped: Vec<(Hash, String)>Nodes that couldn’t be pruned (and why).
completed: boolWhether pruning completed fully or was limited.
Implementations§
Source§impl PruningResult
impl PruningResult
Trait Implementations§
Source§impl Clone for PruningResult
impl Clone for PruningResult
Source§fn clone(&self) -> PruningResult
fn clone(&self) -> PruningResult
Returns a duplicate of the value. Read more
1.0.0 · 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 PruningResult
impl RefUnwindSafe for PruningResult
impl Send for PruningResult
impl Sync for PruningResult
impl Unpin for PruningResult
impl UnwindSafe for PruningResult
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