#[non_exhaustive]pub struct ProducerState {
pub producer_id: ProducerId,
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: BTreeMap<i32, Bytes>,
}
Expand description
Valid versions: 0
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.producer_id: ProducerId
The producer id.
Supported API versions: 0
producer_epoch: i32
The producer epoch.
Supported API versions: 0
last_sequence: i32
The last sequence number sent by the producer.
Supported API versions: 0
last_timestamp: i64
The last timestamp sent by the producer.
Supported API versions: 0
coordinator_epoch: i32
The current epoch of the producer group.
Supported API versions: 0
current_txn_start_offset: i64
The current transaction start offset of the producer.
Supported API versions: 0
unknown_tagged_fields: BTreeMap<i32, Bytes>
Other tagged fields
Implementations§
Source§impl ProducerState
impl ProducerState
Sourcepub fn with_producer_id(self, value: ProducerId) -> Self
pub fn with_producer_id(self, value: ProducerId) -> Self
Sets producer_id
to the passed value.
The producer id.
Supported API versions: 0
Sourcepub fn with_producer_epoch(self, value: i32) -> Self
pub fn with_producer_epoch(self, value: i32) -> Self
Sets producer_epoch
to the passed value.
The producer epoch.
Supported API versions: 0
Sourcepub fn with_last_sequence(self, value: i32) -> Self
pub fn with_last_sequence(self, value: i32) -> Self
Sets last_sequence
to the passed value.
The last sequence number sent by the producer.
Supported API versions: 0
Sourcepub fn with_last_timestamp(self, value: i64) -> Self
pub fn with_last_timestamp(self, value: i64) -> Self
Sets last_timestamp
to the passed value.
The last timestamp sent by the producer.
Supported API versions: 0
Sourcepub fn with_coordinator_epoch(self, value: i32) -> Self
pub fn with_coordinator_epoch(self, value: i32) -> Self
Sets coordinator_epoch
to the passed value.
The current epoch of the producer group.
Supported API versions: 0
Sourcepub fn with_current_txn_start_offset(self, value: i64) -> Self
pub fn with_current_txn_start_offset(self, value: i64) -> Self
Sets current_txn_start_offset
to the passed value.
The current transaction start offset of the producer.
Supported API versions: 0
Sourcepub fn with_unknown_tagged_fields(self, value: BTreeMap<i32, Bytes>) -> Self
pub fn with_unknown_tagged_fields(self, value: BTreeMap<i32, Bytes>) -> Self
Sets unknown_tagged_fields to the passed value.
Sourcepub fn with_unknown_tagged_field(self, key: i32, value: Bytes) -> Self
pub fn with_unknown_tagged_field(self, key: i32, value: Bytes) -> Self
Inserts an entry into unknown_tagged_fields.
Trait Implementations§
Source§impl Clone for ProducerState
impl Clone for ProducerState
Source§fn clone(&self) -> ProducerState
fn clone(&self) -> ProducerState
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for ProducerState
impl Debug for ProducerState
Source§impl Decodable for ProducerState
Available on crate feature client
only.
impl Decodable for ProducerState
client
only.Source§impl Default for ProducerState
impl Default for ProducerState
Source§impl Encodable for ProducerState
Available on crate feature broker
only.
impl Encodable for ProducerState
broker
only.