pub enum ChunkCacheCapacity {
Chunks(usize),
Bytes(usize),
}Expand description
Capacity policy for the decoded-chunk cache.
Variants§
Chunks(usize)
Retain at most this many decoded chunks.
Bytes(usize)
Derive the retained chunk count from this byte target.
Trait Implementations§
Source§impl Clone for ChunkCacheCapacity
impl Clone for ChunkCacheCapacity
Source§fn clone(&self) -> ChunkCacheCapacity
fn clone(&self) -> ChunkCacheCapacity
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 ChunkCacheCapacity
Source§impl Debug for ChunkCacheCapacity
impl Debug for ChunkCacheCapacity
impl Eq for ChunkCacheCapacity
Source§impl PartialEq for ChunkCacheCapacity
impl PartialEq for ChunkCacheCapacity
impl StructuralPartialEq for ChunkCacheCapacity
Auto Trait Implementations§
impl Freeze for ChunkCacheCapacity
impl RefUnwindSafe for ChunkCacheCapacity
impl Send for ChunkCacheCapacity
impl Sync for ChunkCacheCapacity
impl Unpin for ChunkCacheCapacity
impl UnsafeUnpin for ChunkCacheCapacity
impl UnwindSafe for ChunkCacheCapacity
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.