flate2::zio

Trait Ops

Source
pub trait Ops {
    type Error: Into<Error>;
    type Flush: Flush;

    // Required methods
    fn total_in(&self) -> u64;
    fn total_out(&self) -> u64;
    fn run(
        &mut self,
        input: &[u8],
        output: &mut [u8],
        flush: Self::Flush,
    ) -> Result<Status, Self::Error>;
    fn run_vec(
        &mut self,
        input: &[u8],
        output: &mut Vec<u8>,
        flush: Self::Flush,
    ) -> Result<Status, Self::Error>;
}

Required Associated Types§

Required Methods§

Source

fn total_in(&self) -> u64

Source

fn total_out(&self) -> u64

Source

fn run( &mut self, input: &[u8], output: &mut [u8], flush: Self::Flush, ) -> Result<Status, Self::Error>

Source

fn run_vec( &mut self, input: &[u8], output: &mut Vec<u8>, flush: Self::Flush, ) -> Result<Status, Self::Error>

Implementors§