pub enum CompressionCache {
Disabled,
Enabled(CompressionCacheInner),
}展开描述
An LRU cache 用于 compressions.
此 prospect of being able 到 reuse 一个 given compression 用于 many connections
means we can afford 到 spend more time on that compression (by passing
CompressionLevel::Amortized 到 the compressor)。
变体§
Disabled
No caching happens, 并 compression happens each time using
CompressionLevel::Interactive。
Enabled(CompressionCacheInner)
压缩结果存储于 LRU 缓存中。
实现§
Trait 实现§
Source§impl Debug for CompressionCache
impl Debug for CompressionCache
自动 Trait 实现§
impl !Freeze for CompressionCache
impl RefUnwindSafe for CompressionCache
impl Send for CompressionCache
impl Sync for CompressionCache
impl Unpin for CompressionCache
impl UnsafeUnpin for CompressionCache
impl UnwindSafe for CompressionCache
Blanket 实现§
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 从 an owned value. 更多信息