#[non_exhaustive]pub struct DiskBudget {
pub capacity: DiskCapacity,
pub cap_bytes: u64,
pub used: u64,
pub space: Option<(u64, u64)>,
}Expand description
What DiskCache::budget reports.
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.capacity: DiskCapacityHow the cache is bounded.
cap_bytes: u64Bytes the cache may hold right now.
used: u64Bytes it holds.
space: Option<(u64, u64)>(free, total) of its file system, when known.
Trait Implementations§
Source§impl Clone for DiskBudget
impl Clone for DiskBudget
impl Copy for DiskBudget
Source§impl Debug for DiskBudget
impl Debug for DiskBudget
impl Eq for DiskBudget
Source§impl PartialEq for DiskBudget
impl PartialEq for DiskBudget
impl StructuralPartialEq for DiskBudget
Auto Trait Implementations§
impl Forget for DiskBudget
impl Freeze for DiskBudget
impl Move for DiskBudget
impl RefUnwindSafe for DiskBudget
impl Send for DiskBudget
impl Sync for DiskBudget
impl Unpin for DiskBudget
impl UnsafeUnpin for DiskBudget
impl UnwindSafe for DiskBudget
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