Struct kafka_protocol::compression::Lz4
source · pub struct Lz4;
Expand description
Gzip compression algorithm. See Kafka’s broker configuration for more information.
Trait Implementations§
source§impl<B: ByteBufMut> Compressor<B> for Lz4
impl<B: ByteBufMut> Compressor<B> for Lz4
source§impl<B: ByteBuf> Decompressor<B> for Lz4
impl<B: ByteBuf> Decompressor<B> for Lz4
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 Lz4
impl Send for Lz4
impl Sync for Lz4
impl Unpin for Lz4
impl UnwindSafe for Lz4
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