#[non_exhaustive]pub struct CacheStats {
pub dir: PathBuf,
pub exists: bool,
pub entries: u64,
pub bytes: u64,
pub foreign: u64,
pub oldest_age_secs: Option<u64>,
pub newest_age_secs: Option<u64>,
}Expand description
What libtea cache stat reports.
Experimental.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.dir: PathBufThe directory inspected.
exists: boolWhether it exists.
entries: u64Entry files.
bytes: u64Bytes in entry files.
foreign: u64Files, directories and links that are not entries.
oldest_age_secs: Option<u64>Seconds since the oldest entry file was written (by file time).
newest_age_secs: Option<u64>Seconds since the newest entry file was written (by file time).
Trait Implementations§
Source§impl Clone for CacheStats
impl Clone for CacheStats
Source§impl Debug for CacheStats
impl Debug for CacheStats
impl Eq for CacheStats
Source§impl PartialEq for CacheStats
impl PartialEq for CacheStats
impl StructuralPartialEq for CacheStats
Auto Trait Implementations§
impl Forget for CacheStats
impl Freeze for CacheStats
impl Move for CacheStats
impl RefUnwindSafe for CacheStats
impl Send for CacheStats
impl Sync for CacheStats
impl Unpin for CacheStats
impl UnsafeUnpin for CacheStats
impl UnwindSafe for CacheStats
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