pub trait Compression { // Required method fn compress(&self, data: &[u8]) -> Result<Vec<u8>>; }
The Logger struct to implement the Log encode. Compress function abstract