pub struct ZstdChunkCompressor { /* private fields */ }Expand description
zstd chunk compressor.
Each chunk is encoded as a zstd frame and can be decoded from concatenated frames.
Implementations§
Trait Implementations§
Source§impl StreamCompressor for ZstdChunkCompressor
impl StreamCompressor for ZstdChunkCompressor
Source§fn compress_chunk(
&mut self,
input: &[u8],
output: &mut Vec<u8>,
) -> Result<(), CompressError>
fn compress_chunk( &mut self, input: &[u8], output: &mut Vec<u8>, ) -> Result<(), CompressError>
Compresses one input chunk and appends newly emitted bytes to
output.Auto Trait Implementations§
impl Freeze for ZstdChunkCompressor
impl RefUnwindSafe for ZstdChunkCompressor
impl Send for ZstdChunkCompressor
impl Sync for ZstdChunkCompressor
impl Unpin for ZstdChunkCompressor
impl UnsafeUnpin for ZstdChunkCompressor
impl UnwindSafe for ZstdChunkCompressor
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