pub struct ShareGroupOffsetPartitionResult { /* private fields */ }Expand description
Result for one partition returned by DescribeShareGroupOffsets.
Implementations§
Sourcepub fn start_offset(&self) -> i64
pub fn start_offset(&self) -> i64
Returns the share-partition start offset.
Sourcepub fn leader_epoch(&self) -> i32
pub fn leader_epoch(&self) -> i32
Returns the leader epoch, or Kafka’s sentinel when unavailable.
Sourcepub fn error_code(&self) -> i16
pub fn error_code(&self) -> i16
Returns the partition-level Kafka error code.
Sourcepub fn error_message(&self) -> Option<&str>
pub fn error_message(&self) -> Option<&str>
Returns the partition-level error message, when supplied.
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) -> ShareGroupOffsetPartitionResult
fn clone(&self) -> ShareGroupOffsetPartitionResult
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