pub struct CleanReport {
pub inspected: u64,
pub evicted_by_soft: u64,
pub evicted_by_max_age: u64,
pub evicted_by_max_size: u64,
pub removed_tmp_dirs: u64,
pub removed_restore_dirs: u64,
pub bytes_reclaimed: u64,
pub evicted_entries: Vec<EvictedEntry>,
}Expand description
Outcome of Cache::clean per AUX-024.
All counts are zero on an absent cache root. Per-mode counts
follow the AUX-024 priority rule (soft > max_age >
max_size): an entry never contributes to more than one
per-mode counter.
Fields§
§inspected: u64AUX-024 step 1: total number of entry directories the
walk looked at (well-formed + corrupt). Excludes
.tmp-/.restore- reclaimables.
evicted_by_soft: u64AUX-024 step 2: entries evicted under the --soft mode.
evicted_by_max_age: u64AUX-024 step 2: entries evicted under the --max-age
mode.
evicted_by_max_size: u64AUX-024 step 2: entries evicted under the --max-size
mode.
removed_tmp_dirs: u64CACHE-022: .tmp-<key>-<random> directories reclaimed.
Always zero when soft is false.
removed_restore_dirs: u64CACHE-022: .restore-<key>-<random> directories
reclaimed. Always zero when soft is false.
bytes_reclaimed: u64AUX-024 step 3: total bytes reclaimed (or projected
under --dry-run). Sums each evicted entry’s
manifest-declared footprint; entries with no parseable
manifest contribute zero. .tmp-/.restore- reclamations
contribute zero.
evicted_entries: Vec<EvictedEntry>One detail per evicted entry per AUX-024’s dry-run
requirement (always populated regardless of dry_run).
Sorted by (matched_mode priority, created_at, key) for
determinism.
Trait Implementations§
Source§impl Clone for CleanReport
impl Clone for CleanReport
Source§fn clone(&self) -> CleanReport
fn clone(&self) -> CleanReport
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CleanReport
impl Debug for CleanReport
Source§impl Default for CleanReport
impl Default for CleanReport
Source§fn default() -> CleanReport
fn default() -> CleanReport
Source§impl PartialEq for CleanReport
impl PartialEq for CleanReport
Source§fn eq(&self, other: &CleanReport) -> bool
fn eq(&self, other: &CleanReport) -> bool
self and other values to be equal, and is used by ==.