pub struct CacheInfoReport {
pub well_formed_entries: u64,
pub corrupt_entries: u64,
pub orphan_tmp_dirs: u64,
pub orphan_restore_dirs: u64,
pub total_bytes: u64,
pub by_schema: BTreeMap<SchemaPrefix, u64>,
}Expand description
Outcome of Cache::info: every category AUX-019 demands.
Counts are accumulated across the entire cache root. The total
byte footprint is the sum of regular-file sizes for every file
reached during the walk (apparent size per
haz_vfs::FsMetadata::size). The by_schema breakdown
counts only well-formed entries; corrupt entries are not
classified by manifest fields they may fail to expose.
Fields§
§well_formed_entries: u64Number of entries whose manifest is present, parses, and
declares the cache’s current schema (AUX-019 step 2).
corrupt_entries: u64Number of entries whose manifest is absent, unparseable, or
declares a non-current schema (AUX-019 step 3).
orphan_tmp_dirs: u64Number of <shard>/.tmp-<key>-<random> directories left by
an incomplete two-phase store (AUX-019 step 6).
orphan_restore_dirs: u64Number of <cache_root>/.restore-<key>-<random> directories
left by an interrupted restoration (AUX-019 step 7).
total_bytes: u64Total byte footprint of every regular file under the cache
root (AUX-019 step 4, apparent-size choice).
by_schema: BTreeMap<SchemaPrefix, u64>Per-schema-prefix count of well-formed entries (AUX-019
step 5).
Trait Implementations§
Source§impl Clone for CacheInfoReport
impl Clone for CacheInfoReport
Source§fn clone(&self) -> CacheInfoReport
fn clone(&self) -> CacheInfoReport
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 CacheInfoReport
impl Debug for CacheInfoReport
Source§impl Default for CacheInfoReport
impl Default for CacheInfoReport
Source§fn default() -> CacheInfoReport
fn default() -> CacheInfoReport
Source§impl PartialEq for CacheInfoReport
impl PartialEq for CacheInfoReport
Source§fn eq(&self, other: &CacheInfoReport) -> bool
fn eq(&self, other: &CacheInfoReport) -> bool
self and other values to be equal, and is used by ==.