pub struct GcPlan {
pub reachability: GcReachability,
pub candidate_nodes: usize,
pub reclaimable_cids: Vec<Cid>,
pub reclaimable_nodes: usize,
pub reclaimable_bytes: usize,
pub missing_candidates: usize,
}Expand description
Dry-run garbage-collection plan for an explicit candidate set.
Fields§
§reachability: GcReachabilityReachability report for the retained roots.
candidate_nodes: usizeNumber of unique candidate CIDs inspected.
reclaimable_cids: Vec<Cid>Unreachable candidate CIDs present in the store, sorted by CID bytes.
reclaimable_nodes: usizeNumber of reclaimable candidate nodes.
reclaimable_bytes: usizeSerialized bytes reclaimable from present unreachable candidates.
missing_candidates: usizeCandidate CIDs that were neither reachable nor present in the store.
Implementations§
Source§impl GcPlan
impl GcPlan
Sourcepub fn reclaimable_cids(&self) -> &[Cid]
pub fn reclaimable_cids(&self) -> &[Cid]
Return reclaimable candidate CIDs in stable byte order.
Sourcepub fn retained_candidate_nodes(&self) -> usize
pub fn retained_candidate_nodes(&self) -> usize
Number of candidate nodes retained because they are still reachable.
Trait Implementations§
impl Eq for GcPlan
impl StructuralPartialEq for GcPlan
Auto Trait Implementations§
impl Freeze for GcPlan
impl RefUnwindSafe for GcPlan
impl Send for GcPlan
impl Sync for GcPlan
impl Unpin for GcPlan
impl UnsafeUnpin for GcPlan
impl UnwindSafe for GcPlan
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more