pub trait Compressor: Outbound {
    fn compress_with_header(&self) -> Result<Bytes>;
}

Required Methods

Compresses the message with the header that represents the size of the compressed message. The first 32-bit (4-byte) represents the length of the message. ref. “avalanchego/network/peer.writeMessages”

Implementors