pub struct CacheStats {
pub path: String,
pub db_path: String,
pub db_bytes: u64,
pub schema_version: u64,
pub enabled: bool,
pub entries: u64,
pub total_bytes: u64,
pub expired: u64,
pub kinds: BTreeMap<String, KindStats>,
pub tables: BTreeMap<String, u64>,
pub images: ImageStats,
}Expand description
grab cache stats.
Fields§
§path: StringThe cache directory.
db_path: String§db_bytes: u64Database + WAL size on disk.
schema_version: u64§enabled: bool§entries: u64§total_bytes: u64Total size of stored response bodies.
expired: u64§kinds: BTreeMap<String, KindStats>§tables: BTreeMap<String, u64>Row counts of the catalog tables.
images: ImageStatsTrait Implementations§
Auto Trait Implementations§
impl Forget for CacheStats
impl Freeze 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