Trait kafka_protocol::compression::Compressor
source · pub trait Compressor<B: ByteBufMut> {
type BufMut: ByteBufMut;
// Required method
fn compress<R, F>(buf: &mut B, f: F) -> Result<R>
where F: FnOnce(&mut Self::BufMut) -> Result<R>;
}Expand description
A trait for record compression algorithms.
Required Associated Types§
sourcetype BufMut: ByteBufMut
type BufMut: ByteBufMut
Target buffer type for compression.
Required Methods§
Object Safety§
This trait is not object safe.