pub struct CompactionReport {
pub container: LockableContainer,
pub entries_before: usize,
pub entries_after: usize,
}Expand description
Outcome of one compaction run: how many live records existed before and after reduction. This is
the deduplication compaction performs on index/pointer records, not object deletion – nothing
in this module ever deletes an object; entries_before - entries_after counts stale pointer/
snapshot records reclaimed, never data. plan_compact_* returns the same shape without writing
anything – what a real run would report.
Fields§
§container: LockableContainerWhich container this run (or preview) targets.
entries_before: usizeLive record count before reduction (the resolved slot’s own entry count, corruption-checked).
entries_after: usizeLive record count after reduction (what was, or would be, written to the newly-published slot).
Trait Implementations§
Source§impl Clone for CompactionReport
impl Clone for CompactionReport
Source§fn clone(&self) -> CompactionReport
fn clone(&self) -> CompactionReport
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 moreimpl Copy for CompactionReport
Source§impl Debug for CompactionReport
impl Debug for CompactionReport
impl Eq for CompactionReport
Source§impl PartialEq for CompactionReport
impl PartialEq for CompactionReport
impl StructuralPartialEq for CompactionReport
Auto Trait Implementations§
impl Freeze for CompactionReport
impl RefUnwindSafe for CompactionReport
impl Send for CompactionReport
impl Sync for CompactionReport
impl Unpin for CompactionReport
impl UnsafeUnpin for CompactionReport
impl UnwindSafe for CompactionReport
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