pub struct GcReport {
pub freed: Vec<ContentHash>,
pub retained: usize,
pub deferred: usize,
}Expand description
What a GC sweep did.
Fields§
§freed: Vec<ContentHash>Hashes of blobs deleted because no record referenced them, in
ContentHash order — not listing order (the sweep walks a BTreeMap
to collapse duplicate listings). That order is intentional.
retained: usizeCount of blobs kept because they are still referenced.
deferred: usizeCount of blobs no record references that were kept anyway, because they
are younger than the policy’s min_age. Without this an operator cannot
tell “nothing to reclaim” from “reclaiming held back”.
Trait Implementations§
impl Eq for GcReport
impl StructuralPartialEq for GcReport
Auto Trait Implementations§
impl Freeze for GcReport
impl RefUnwindSafe for GcReport
impl Send for GcReport
impl Sync for GcReport
impl Unpin for GcReport
impl UnsafeUnpin for GcReport
impl UnwindSafe for GcReport
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