Struct fluvio_dataplane_protocol::batch::Batch [−][src]
pub struct Batch<R = MemoryRecords> {
pub base_offset: Offset,
pub batch_len: i32,
pub header: BatchHeader,
// some fields omitted
}
Fields
base_offset: Offset
batch_len: i32
header: BatchHeader
Implementations
get last offset delta
add new record, this will update the offset to correct
computed last offset which is base offset + number of records
Trait Implementations
Auto Trait Implementations
impl<R> RefUnwindSafe for Batch<R> where
R: RefUnwindSafe,
impl<R> UnwindSafe for Batch<R> where
R: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more