Struct kafka_protocol::compression::Gzip
source · pub struct Gzip;
Expand description
Gzip compression algorithm. See Kafka’s broker configuration for more information.
Trait Implementations§
source§impl<B: ByteBufMut> Compressor<B> for Gzip
impl<B: ByteBufMut> Compressor<B> for Gzip
source§fn compress<R, F>(buf: &mut B, f: F) -> Result<R, EncodeError>where
F: FnOnce(&mut Self::BufMut) -> Result<R, EncodeError>,
fn compress<R, F>(buf: &mut B, f: F) -> Result<R, EncodeError>where
F: FnOnce(&mut Self::BufMut) -> Result<R, EncodeError>,
source§impl<B: ByteBuf> Decompressor<B> for Gzip
impl<B: ByteBuf> Decompressor<B> for Gzip
source§fn decompress<R, F>(buf: &mut B, f: F) -> Result<R, DecodeError>where
F: FnOnce(&mut Self::Buf) -> Result<R, DecodeError>,
fn decompress<R, F>(buf: &mut B, f: F) -> Result<R, DecodeError>where
F: FnOnce(&mut Self::Buf) -> Result<R, DecodeError>,
Decompress records from
B
mapped using F
into R
.