pub trait BufferCompressor:
Debug
+ Send
+ Sync {
// Required methods
fn compress(&self, input_buf: &[u8], output_buf: &mut Vec<u8>) -> Result<()>;
fn decompress(
&self,
input_buf: &[u8],
output_buf: &mut Vec<u8>,
) -> Result<()>;
}