pub struct ShareGroupStateBatch { /* private fields */ }Expand description
One delivery-state batch supplied to or returned by share-group state APIs.
Implementations§
Sourcepub fn new(
first_offset: i64,
last_offset: i64,
delivery_state: i8,
delivery_count: i16,
) -> Self
pub fn new( first_offset: i64, last_offset: i64, delivery_state: i8, delivery_count: i16, ) -> Self
Creates one state batch using Kafka’s delivery-state numeric value.
Sourcepub fn first_offset(&self) -> i64
pub fn first_offset(&self) -> i64
Returns the first offset in the batch.
Sourcepub fn last_offset(&self) -> i64
pub fn last_offset(&self) -> i64
Returns the last offset in the batch.
Sourcepub fn delivery_state(&self) -> i8
pub fn delivery_state(&self) -> i8
Returns Kafka’s delivery-state numeric value.
Sourcepub fn delivery_count(&self) -> i16
pub fn delivery_count(&self) -> i16
Returns the delivery count.
Trait Implementations§
Source§fn clone(&self) -> ShareGroupStateBatch
fn clone(&self) -> ShareGroupStateBatch
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§fn from(batch: &ShareGroupStateBatch) -> Self
fn from(batch: &ShareGroupStateBatch) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
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