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§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>
fn decompress<R, F>(buf: &mut B, f: F) -> Result<R, DecodeError>
Decompress records from
B
mapped using F
into R
.Auto Trait Implementations§
impl RefUnwindSafe for Gzip
impl Send for Gzip
impl Sync for Gzip
impl Unpin for Gzip
impl UnwindSafe for Gzip
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more