Struct kafka_api::record::RecordBatch
source · pub struct RecordBatch { /* private fields */ }
Implementations§
source§impl RecordBatch
impl RecordBatch
pub fn set_last_offset(&mut self, offset: i64)
pub fn base_offset(&self) -> i64
pub fn last_offset_delta(&self) -> i32
pub fn records_count(&self) -> i32
pub fn records(&self) -> Vec<Record>
Trait Implementations§
source§impl Clone for RecordBatch
impl Clone for RecordBatch
source§fn clone(&self) -> RecordBatch
fn clone(&self) -> RecordBatch
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 moresource§impl Debug for RecordBatch
impl Debug for RecordBatch
source§impl Default for RecordBatch
impl Default for RecordBatch
source§fn default() -> RecordBatch
fn default() -> RecordBatch
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for RecordBatch
impl Send for RecordBatch
impl Sync for RecordBatch
impl Unpin for RecordBatch
impl UnwindSafe for RecordBatch
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