pub struct RecordBatchDecoder;
Expand description
Batch decoder for Kafka records.
Implementations§
Source§impl RecordBatchDecoder
impl RecordBatchDecoder
Sourcepub fn decode_with_custom_compression<B: ByteBuf, F>(
buf: &mut B,
decompressor: Option<F>,
) -> Result<RecordSet>
pub fn decode_with_custom_compression<B: ByteBuf, F>( buf: &mut B, decompressor: Option<F>, ) -> Result<RecordSet>
Decode one RecordSet from the provided buffer.
§Arguments
decompressor
- A function that decompresses the given batch of records.
If None
, the right decompression algorithm will automatically be selected and applied.
Trait Implementations§
Source§impl Clone for RecordBatchDecoder
impl Clone for RecordBatchDecoder
Source§fn clone(&self) -> RecordBatchDecoder
fn clone(&self) -> RecordBatchDecoder
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for RecordBatchDecoder
impl RefUnwindSafe for RecordBatchDecoder
impl Send for RecordBatchDecoder
impl Sync for RecordBatchDecoder
impl Unpin for RecordBatchDecoder
impl UnwindSafe for RecordBatchDecoder
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