pub enum CacheCapacity {
Bounded(NonZeroUsize),
Unbounded,
}Expand description
The maximum number of payload bytes resident in a cache.
Variants§
Bounded(NonZeroUsize)
Evict least-recently-used ranges to enforce the given byte ceiling.
Unbounded
Retain all admitted ranges until explicit invalidation.
Trait Implementations§
Source§impl Clone for CacheCapacity
impl Clone for CacheCapacity
Source§fn clone(&self) -> CacheCapacity
fn clone(&self) -> CacheCapacity
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CacheCapacity
Source§impl Debug for CacheCapacity
impl Debug for CacheCapacity
impl Eq for CacheCapacity
Source§impl PartialEq for CacheCapacity
impl PartialEq for CacheCapacity
impl StructuralPartialEq for CacheCapacity
Auto Trait Implementations§
impl Freeze for CacheCapacity
impl RefUnwindSafe for CacheCapacity
impl Send for CacheCapacity
impl Sync for CacheCapacity
impl Unpin for CacheCapacity
impl UnsafeUnpin for CacheCapacity
impl UnwindSafe for CacheCapacity
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