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