pub struct BatchId {
pub partition: PartitionId,
pub epoch: u32,
pub seq: u64,
}Expand description
Identity of one source poll batch within a partition and assignment epoch. Epochs are bumped on every rebalance so acknowledgements from revoked assignments are recognized as stale and discarded.
Fields§
§partition: PartitionIdPartition the batch was polled from.
epoch: u32Assignment epoch the batch belongs to.
seq: u64Per-partition, per-epoch monotonically increasing sequence number.
Trait Implementations§
impl Copy for BatchId
impl Eq for BatchId
impl StructuralPartialEq for BatchId
Auto Trait Implementations§
impl Freeze for BatchId
impl RefUnwindSafe for BatchId
impl Send for BatchId
impl Sync for BatchId
impl Unpin for BatchId
impl UnsafeUnpin for BatchId
impl UnwindSafe for BatchId
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more