pub trait CompressionBehavior {
    // Required methods
    fn compress(obj: &[u8]) -> DsnpGraphResult<Vec<u8>>;
    fn decompress(data: &[u8]) -> DsnpGraphResult<Vec<u8>>;
}
Expand description

Common trait for different compression algorithms

Required Methods§

source

fn compress(obj: &[u8]) -> DsnpGraphResult<Vec<u8>>

compress the input

source

fn decompress(data: &[u8]) -> DsnpGraphResult<Vec<u8>>

decompress the input

Object Safety§

This trait is not object safe.

Implementors§