Struct kafka_protocol::compression::Gzip  
source · [−]pub struct Gzip;Expand description
Gzip compression algorithm. See Kafka’s broker configuration for more information.
Trait Implementations
sourceimpl<B: ByteBufMut> Compressor<B> for Gzip
 
impl<B: ByteBufMut> Compressor<B> for Gzip
sourcefn 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>, 
Compresses into provided ByteBufMut, with records encoded by F into R.
sourceimpl<B: ByteBuf> Decompressor<B> for Gzip
 
impl<B: ByteBuf> Decompressor<B> for Gzip
sourcefn 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.
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
sourceimpl<T> BorrowMut<T> for T where
    T: ?Sized, 
 
impl<T> BorrowMut<T> for T where
    T: ?Sized, 
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more