pub struct ProducerState {
pub producer_id: i64,
pub producer_epoch: i32,
pub last_sequence: i32,
pub last_timestamp: i64,
pub coordinator_epoch: i32,
pub current_txn_start_offset: i64,
pub _unknown_tagged_fields: Vec<RawTaggedField>,
}Fields§
§producer_id: i64The producer id.
producer_epoch: i32The producer epoch.
last_sequence: i32The last sequence number sent by the producer.
last_timestamp: i64The last timestamp sent by the producer.
coordinator_epoch: i32The current epoch of the producer group.
current_txn_start_offset: i64The current transaction start offset of the producer.
_unknown_tagged_fields: Vec<RawTaggedField>Implementations§
Source§impl ProducerState
impl ProducerState
pub fn with_producer_id(self, value: i64) -> Self
pub fn with_producer_epoch(self, value: i32) -> Self
pub fn with_last_sequence(self, value: i32) -> Self
pub fn with_last_timestamp(self, value: i64) -> Self
pub fn with_coordinator_epoch(self, value: i32) -> Self
pub fn with_current_txn_start_offset(self, value: i64) -> Self
pub fn read(buf: &mut Bytes, _version: i16) -> Result<Self>
pub fn write(&self, buf: &mut BytesMut, _version: i16) -> Result<()>
pub fn encoded_len(&self, _version: i16) -> Result<usize>
Trait Implementations§
Source§impl Clone for ProducerState
impl Clone for ProducerState
Source§fn clone(&self) -> ProducerState
fn clone(&self) -> ProducerState
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 ProducerState
impl Debug for ProducerState
Source§impl Default for ProducerState
impl Default for ProducerState
Source§impl PartialEq for ProducerState
impl PartialEq for ProducerState
Source§fn eq(&self, other: &ProducerState) -> bool
fn eq(&self, other: &ProducerState) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ProducerState
Auto Trait Implementations§
impl Freeze for ProducerState
impl RefUnwindSafe for ProducerState
impl Send for ProducerState
impl Sync for ProducerState
impl Unpin for ProducerState
impl UnsafeUnpin for ProducerState
impl UnwindSafe for ProducerState
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