pub struct ProducerSnapshotEntryFacts {
pub producer_id: i64,
pub producer_epoch: i16,
pub last_sequence: i32,
pub last_offset: i64,
pub offset_delta: i32,
pub coordinator_epoch: i32,
pub current_txn_first_offset: i64,
}Expand description
One decoded producer-state snapshot entry, field for field as Kafka’s
ProducerStateManager snapshot schema (version 1) lays it out, minus the
timestamp, which no validity rule reads.
Seven integers of four widths with seven meanings travel as one struct, so a transposed call site does not compile.
Fields§
§producer_id: i64ProducerId.
producer_epoch: i16ProducerEpoch.
last_sequence: i32LastSequence, or -1 for a producer whose only record is a marker.
last_offset: i64LastOffset, or -1 with the same meaning.
offset_delta: i32OffsetDelta: the last batch’s offset count less one.
coordinator_epoch: i32CoordinatorEpoch, or -1 before any marker.
current_txn_first_offset: i64CurrentTxnFirstOffset, or -1 with no open transaction.
Trait Implementations§
Source§impl Clone for ProducerSnapshotEntryFacts
impl Clone for ProducerSnapshotEntryFacts
Source§fn clone(&self) -> ProducerSnapshotEntryFacts
fn clone(&self) -> ProducerSnapshotEntryFacts
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 moreimpl Copy for ProducerSnapshotEntryFacts
Source§impl Debug for ProducerSnapshotEntryFacts
impl Debug for ProducerSnapshotEntryFacts
impl Eq for ProducerSnapshotEntryFacts
impl StructuralPartialEq for ProducerSnapshotEntryFacts
Auto Trait Implementations§
impl Freeze for ProducerSnapshotEntryFacts
impl RefUnwindSafe for ProducerSnapshotEntryFacts
impl Send for ProducerSnapshotEntryFacts
impl Sync for ProducerSnapshotEntryFacts
impl Unpin for ProducerSnapshotEntryFacts
impl UnsafeUnpin for ProducerSnapshotEntryFacts
impl UnwindSafe for ProducerSnapshotEntryFacts
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