pub struct CacheView {
pub cap_bytes: u64,
pub used_bytes: u64,
pub dir: String,
pub shared: bool,
}Expand description
The on-disk content-cache view (control.cache.get, and embedded in StatusResult).
Fields§
§cap_bytes: u64The configured cache size cap, in bytes.
used_bytes: u64Bytes currently used on disk.
dir: StringThe cache directory.
Whether the cache directory is the machine-wide shared cache.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CacheView
impl<'de> Deserialize<'de> for CacheView
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for CacheView
impl StructuralPartialEq for CacheView
Auto Trait Implementations§
impl Freeze for CacheView
impl RefUnwindSafe for CacheView
impl Send for CacheView
impl Sync for CacheView
impl Unpin for CacheView
impl UnsafeUnpin for CacheView
impl UnwindSafe for CacheView
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