pub struct SweepReport {
pub plan: SweepPlan,
pub mode: SweepMode,
pub executed: bool,
pub loose_removed: usize,
pub packs_removed: usize,
pub packs_rewritten: usize,
pub bytes_reclaimed: u64,
pub trash: Option<PathBuf>,
}Expand description
Outcome of an executed (or dry-run) sweep.
Fields§
§plan: SweepPlanThe plan that was (or would be) executed.
mode: SweepModeThe mode the sweep ran in.
executed: boolWhether any filesystem change was made (false for dry runs).
loose_removed: usizeLoose garbage files removed.
packs_removed: usizePacks removed entirely (full-garbage, coverage-redundant, and the old pairs of rewritten packs).
packs_rewritten: usizePacks rewritten without their garbage.
bytes_reclaimed: u64On-disk bytes no longer under objects/: unlinked in delete
mode, moved to trash in trash mode. For rewrites this is the old
pair size minus the new pair size.
trash: Option<PathBuf>Trash directory when mode was SweepMode::Trash, else None.
Trait Implementations§
Source§impl Clone for SweepReport
impl Clone for SweepReport
Source§fn clone(&self) -> SweepReport
fn clone(&self) -> SweepReport
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 SweepReport
impl Debug for SweepReport
impl Eq for SweepReport
Source§impl PartialEq for SweepReport
impl PartialEq for SweepReport
impl StructuralPartialEq for SweepReport
Auto Trait Implementations§
impl Freeze for SweepReport
impl RefUnwindSafe for SweepReport
impl Send for SweepReport
impl Sync for SweepReport
impl Unpin for SweepReport
impl UnsafeUnpin for SweepReport
impl UnwindSafe for SweepReport
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