pub struct CacheStats {
pub total_files: u64,
pub total_size: u64,
pub config_files: u64,
pub config_size: u64,
pub data_files: u64,
pub data_size: u64,
pub patch_files: u64,
pub patch_size: u64,
}Expand description
Cache statistics
Fields§
§total_files: u64Total number of cached files
total_size: u64Total size of cached files in bytes
config_files: u64Number of cached config files
config_size: u64Size of cached config files in bytes
data_files: u64Number of cached data files
data_size: u64Size of cached data files in bytes
patch_files: u64Number of cached patch files
patch_size: u64Size of cached patch files in bytes
Implementations§
Source§impl CacheStats
impl CacheStats
Sourcepub fn total_size_human(&self) -> String
pub fn total_size_human(&self) -> String
Get total size in human-readable format
Sourcepub fn config_size_human(&self) -> String
pub fn config_size_human(&self) -> String
Get config size in human-readable format
Sourcepub fn data_size_human(&self) -> String
pub fn data_size_human(&self) -> String
Get data size in human-readable format
Sourcepub fn patch_size_human(&self) -> String
pub fn patch_size_human(&self) -> String
Get patch size in human-readable format
Trait Implementations§
Source§impl Clone for CacheStats
impl Clone for CacheStats
Source§fn clone(&self) -> CacheStats
fn clone(&self) -> CacheStats
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CacheStats
impl Debug for CacheStats
Source§impl Default for CacheStats
impl Default for CacheStats
Source§fn default() -> CacheStats
fn default() -> CacheStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CacheStats
impl RefUnwindSafe for CacheStats
impl Send for CacheStats
impl Sync for CacheStats
impl Unpin 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