pub struct CompressionContext {
compressor: Compressor<'static>,
}
Expand description
Additional context that may be needed for compression.
In the case of zstd, this will contain the zstd context, which can be reused between subsequent compression calls to avoid the performance overhead of initialising a new context for every compression.
Fields§
§compressor: Compressor<'static>
Trait Implementations§
Source§impl Debug for CompressionContext
impl Debug for CompressionContext
Auto Trait Implementations§
impl Freeze for CompressionContext
impl RefUnwindSafe for CompressionContext
impl Send for CompressionContext
impl Sync for CompressionContext
impl Unpin for CompressionContext
impl UnwindSafe for CompressionContext
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