pub trait Decompressor:
Send
+ Sync
+ Unpin
+ 'static {
// Required method
fn decompress(&self, data: &[u8]) -> Result<Bytes, Error>;
}Expand description
This trait is used to implement message-level decompression algorithms for payloads.
On incoming messages, the payload is decompressed using the decompress method.