pub enum DiskCapacity {
Auto(AutoDisk),
Fixed(u64),
}Expand description
How a DiskCache is bounded.
Variants§
Auto(AutoDisk)
Follow the free space of the cache’s file system.
Fixed(u64)
A fixed number of bytes.
Trait Implementations§
Source§impl Clone for DiskCapacity
impl Clone for DiskCapacity
impl Copy for DiskCapacity
Source§impl Debug for DiskCapacity
impl Debug for DiskCapacity
Source§impl Default for DiskCapacity
impl Default for DiskCapacity
Source§fn default() -> DiskCapacity
fn default() -> DiskCapacity
Returns the “default value” for a type. Read more
impl Eq for DiskCapacity
Source§impl PartialEq for DiskCapacity
impl PartialEq for DiskCapacity
impl StructuralPartialEq for DiskCapacity
Auto Trait Implementations§
impl Forget for DiskCapacity
impl Freeze for DiskCapacity
impl Move for DiskCapacity
impl RefUnwindSafe for DiskCapacity
impl Send for DiskCapacity
impl Sync for DiskCapacity
impl Unpin for DiskCapacity
impl UnsafeUnpin for DiskCapacity
impl UnwindSafe for DiskCapacity
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