pub struct CompressionCacheInner {
size: usize,
entries: Mutex<VecDeque<Arc<CompressionCacheEntry>>>,
}
Expand description
Innards of an enabled CompressionCache.
You cannot make one of these directly. Use CompressionCache::new
.
Fields§
§size: usize
Maximum size of underlying storage.
entries: Mutex<VecDeque<Arc<CompressionCacheEntry>>>
LRU-order entries.
First is least-used, last is most-used.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for CompressionCacheInner
impl RefUnwindSafe for CompressionCacheInner
impl Send for CompressionCacheInner
impl Sync for CompressionCacheInner
impl Unpin for CompressionCacheInner
impl UnwindSafe for CompressionCacheInner
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