pub enum CacheLimit {
Unbounded,
TotalSize {
max_size: usize,
},
AvailableSpace {
min_ratio: f64,
},
}Expand description
Limit the cache size.
Variants§
Trait Implementations§
Source§impl Debug for CacheLimit
impl Debug for CacheLimit
Auto Trait Implementations§
impl Freeze for CacheLimit
impl RefUnwindSafe for CacheLimit
impl Send for CacheLimit
impl Sync for CacheLimit
impl Unpin for CacheLimit
impl UnwindSafe for CacheLimit
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