Struct kafka_protocol::compression::None
source · pub struct None;
Expand description
Noop compression implementation.
Trait Implementations§
source§impl<B: ByteBufMut> Compressor<B> for None
impl<B: ByteBufMut> Compressor<B> for None
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 None
impl<B: ByteBuf> Decompressor<B> for None
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
.