pub struct BlobGcPlan {
pub reachability: BlobGcReachability,
pub candidate_blobs: usize,
pub reclaimable_blobs: Vec<BlobRef>,
pub reclaimable_blob_count: usize,
pub reclaimable_blob_bytes: u64,
pub missing_candidates: usize,
}Expand description
Dry-run garbage-collection plan for offloaded blobs.
Fields§
§reachability: BlobGcReachabilityReachability report for the retained roots.
candidate_blobs: usizeNumber of unique candidate blob CIDs inspected.
reclaimable_blobs: Vec<BlobRef>Unreachable candidate blobs present in the blob store, sorted by CID bytes.
reclaimable_blob_count: usizeNumber of reclaimable candidate blobs.
reclaimable_blob_bytes: u64Bytes reclaimable from present unreachable candidates.
missing_candidates: usizeCandidate blob CIDs that were neither reachable nor present in the blob store.
Implementations§
Source§impl BlobGcPlan
impl BlobGcPlan
Sourcepub fn reclaimable_blobs(&self) -> &[BlobRef]
pub fn reclaimable_blobs(&self) -> &[BlobRef]
Return reclaimable blob references in stable CID order.
Sourcepub fn retained_candidate_blobs(&self) -> usize
pub fn retained_candidate_blobs(&self) -> usize
Number of candidate blobs retained because they are still reachable.
Trait Implementations§
Source§impl Clone for BlobGcPlan
impl Clone for BlobGcPlan
Source§fn clone(&self) -> BlobGcPlan
fn clone(&self) -> BlobGcPlan
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BlobGcPlan
impl Debug for BlobGcPlan
Source§impl Default for BlobGcPlan
impl Default for BlobGcPlan
Source§fn default() -> BlobGcPlan
fn default() -> BlobGcPlan
Returns the “default value” for a type. Read more
impl Eq for BlobGcPlan
Source§impl PartialEq for BlobGcPlan
impl PartialEq for BlobGcPlan
impl StructuralPartialEq for BlobGcPlan
Auto Trait Implementations§
impl Freeze for BlobGcPlan
impl RefUnwindSafe for BlobGcPlan
impl Send for BlobGcPlan
impl Sync for BlobGcPlan
impl Unpin for BlobGcPlan
impl UnsafeUnpin for BlobGcPlan
impl UnwindSafe for BlobGcPlan
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