Trait Compress

Source
pub trait Compress {
    // Required method
    fn compress(&self, input: Bytes) -> Result<Bytes>;
}
Expand description

Interface to adapt compression implementations for use with Selium.

Required Methods§

Source

fn compress(&self, input: Bytes) -> Result<Bytes>

Fallibly compress the input bytes, and output as bytes.

Implementors§