pub struct ZstdCompressContext<D: ProcessBuffer> { /* private fields */ }
Expand description
processor that compresses the input using Zstandard
Designed to wrap around the PreflateChunkProcessor.
Implementations§
Source§impl<D: ProcessBuffer> ZstdCompressContext<D>
impl<D: ProcessBuffer> ZstdCompressContext<D>
Trait Implementations§
Source§impl<D: ProcessBuffer> ProcessBuffer for ZstdCompressContext<D>
impl<D: ProcessBuffer> ProcessBuffer for ZstdCompressContext<D>
fn process_buffer( &mut self, input: &[u8], input_complete: bool, writer: &mut impl Write, max_output_write: usize, ) -> Result<bool>
fn stats(&self) -> PreflateStats
Auto Trait Implementations§
impl<D> Freeze for ZstdCompressContext<D>where
D: Freeze,
impl<D> RefUnwindSafe for ZstdCompressContext<D>where
D: RefUnwindSafe,
impl<D> Send for ZstdCompressContext<D>where
D: Send,
impl<D> Sync for ZstdCompressContext<D>where
D: Sync,
impl<D> Unpin for ZstdCompressContext<D>where
D: Unpin,
impl<D> !UnwindSafe for ZstdCompressContext<D>
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