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