Struct kafka_protocol::compression::None  
source · [−]pub struct None;Expand description
Noop compression implementation.
Trait Implementations
sourceimpl<B: ByteBufMut> Compressor<B> for None
 
impl<B: ByteBufMut> Compressor<B> for None
type BufMut = B
type BufMut = B
Target buffer type for compression.
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 None
 
impl<B: ByteBuf> Decompressor<B> for None
type Buf = B
type Buf = B
Target buffer type for decompression.
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 None
impl Send for None
impl Sync for None
impl Unpin for None
impl UnwindSafe for None
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