Skip to main content

CacheStatusReport

Struct CacheStatusReport 

Source
pub struct CacheStatusReport {
Show 19 fields pub schema_version: u32, pub cache_root: String, pub inspected_at: String, pub cache_root_found: bool, pub scan_limit: usize, pub truncated: bool, pub cache_count: usize, pub fresh_count: usize, pub stale_count: usize, pub unmanaged_count: usize, pub invalid_count: usize, pub total_size_bytes: u64, pub caches: Vec<CacheStatusRow>, pub refresh_lock_count: usize, pub active_refresh_lock_count: usize, pub stale_refresh_lock_count: usize, pub invalid_refresh_lock_count: usize, pub refresh_lock_size_bytes: u64, pub refresh_locks: Vec<CacheRefreshLockStatusRow>,
}
Expand description

CacheStatusReport

Bounded local inventory of known complete caches and refresh locks.

Fields§

§schema_version: u32

Cache-status report schema version.

§cache_root: String

Inspected user-level cache root.

§inspected_at: String

UTC timestamp at which local inspection was requested.

§cache_root_found: bool

Whether the cache root existed.

§scan_limit: usize

Maximum number of cache and refresh-lock files inspected in one report.

§truncated: bool

Whether additional cache or refresh-lock candidates existed beyond the scan limit.

§cache_count: usize

Number of cache rows returned.

§fresh_count: usize

Number of caches fresh under an explicit family policy.

§stale_count: usize

Number of caches stale under an explicit family policy.

§unmanaged_count: usize

Number of readable caches whose family has no registered age policy.

§invalid_count: usize

Number of files whose generic cache header or timestamp was invalid.

§total_size_bytes: u64

Sum of filesystem sizes for returned cache files.

§caches: Vec<CacheStatusRow>

Canonically path-ordered cache rows.

§refresh_lock_count: usize

Number of refresh-lock rows returned.

§active_refresh_lock_count: usize

Number of locks still active under their recorded stale policy.

§stale_refresh_lock_count: usize

Number of locks older than their recorded stale policy.

§invalid_refresh_lock_count: usize

Number of unreadable, malformed, or future-dated locks.

§refresh_lock_size_bytes: u64

Sum of filesystem sizes for returned refresh-lock files.

§refresh_locks: Vec<CacheRefreshLockStatusRow>

Canonically path-ordered refresh-lock rows.

Trait Implementations§

Source§

impl Clone for CacheStatusReport

Source§

fn clone(&self) -> CacheStatusReport

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for CacheStatusReport

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for CacheStatusReport

Source§

impl PartialEq for CacheStatusReport

Source§

fn eq(&self, other: &CacheStatusReport) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Serialize for CacheStatusReport

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for CacheStatusReport

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.