pub struct ReadShareGroupStatePartitionResult { /* private fields */ }Expand description
One partition returned by ReadShareGroupState.
Implementations§
Sourcepub fn error_code(&self) -> i16
pub fn error_code(&self) -> i16
Returns the Kafka error code.
Sourcepub fn error_message(&self) -> Option<&str>
pub fn error_message(&self) -> Option<&str>
Returns the broker error message, when supplied.
Sourcepub fn state_epoch(&self) -> i32
pub fn state_epoch(&self) -> i32
Returns the share-partition state epoch.
Sourcepub fn start_offset(&self) -> i64
pub fn start_offset(&self) -> i64
Returns the share-partition start offset.
Sourcepub fn state_batches(&self) -> &[ShareGroupStateBatch]
pub fn state_batches(&self) -> &[ShareGroupStateBatch]
Returns delivery-state batches in broker response order.
Sourcepub fn is_success(&self) -> bool
pub fn is_success(&self) -> bool
Returns whether Kafka returned this partition without an error.
Trait Implementations§
Source§fn clone(&self) -> ReadShareGroupStatePartitionResult
fn clone(&self) -> ReadShareGroupStatePartitionResult
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 moreAuto 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