pub struct ConsumerAssignment { /* private fields */ }Expand description
Direct consumer topic partition assignment.
Implementations§
Source§impl ConsumerAssignment
impl ConsumerAssignment
Sourcepub fn next_offset(&self) -> i64
pub fn next_offset(&self) -> i64
Returns the next offset that will be fetched or committed.
Sourcepub fn leader_epoch(&self) -> i32
pub fn leader_epoch(&self) -> i32
Returns the latest partition leader epoch observed by this assignment.
The initial value is -1 until a RecordBatch response provides an
epoch. Legacy MessageSet responses do not update this value.
Trait Implementations§
Source§impl Clone for ConsumerAssignment
impl Clone for ConsumerAssignment
Source§fn clone(&self) -> ConsumerAssignment
fn clone(&self) -> ConsumerAssignment
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§impl Debug for ConsumerAssignment
impl Debug for ConsumerAssignment
impl Eq for ConsumerAssignment
Source§impl PartialEq for ConsumerAssignment
impl PartialEq for ConsumerAssignment
impl StructuralPartialEq for ConsumerAssignment
Auto Trait Implementations§
impl Freeze for ConsumerAssignment
impl RefUnwindSafe for ConsumerAssignment
impl Send for ConsumerAssignment
impl Sync for ConsumerAssignment
impl Unpin for ConsumerAssignment
impl UnsafeUnpin for ConsumerAssignment
impl UnwindSafe for ConsumerAssignment
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