Trait flate2::ffi::DeflateBackend

source ·
pub trait DeflateBackend: Backend {
    // Required methods
    fn make(level: Compression, zlib_header: bool, window_bits: u8) -> Self;
    fn compress(
        &mut self,
        input: &[u8],
        output: &mut [u8],
        flush: FlushCompress,
    ) -> Result<Status, CompressError>;
    fn reset(&mut self);
}

Required Methods§

source

fn make(level: Compression, zlib_header: bool, window_bits: u8) -> Self

source

fn compress( &mut self, input: &[u8], output: &mut [u8], flush: FlushCompress, ) -> Result<Status, CompressError>

source

fn reset(&mut self)

Object Safety§

This trait is not object safe.

Implementors§