#[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
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.producer_id: ProducerId
Supported API versions: 0
producer_epoch: i32
Supported API versions: 0
last_sequence: i32
Supported API versions: 0
last_timestamp: i64
Supported API versions: 0
coordinator_epoch: i32
Supported API versions: 0
current_txn_start_offset: i64
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.
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.
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.
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.
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.
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.
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
Returns a copy of the value. Read more
1.0.0 · 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 Decodable for ProducerState
Available on crate feature client
only.
impl Decodable for ProducerState
Available on crate feature
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
Available on crate feature
broker
only.Source§impl Message for ProducerState
impl Message for ProducerState
Source§const VERSIONS: VersionRange
const VERSIONS: VersionRange
The valid versions for this message.
Source§const DEPRECATED_VERSIONS: Option<VersionRange> = None
const DEPRECATED_VERSIONS: Option<VersionRange> = None
The deprecated versions for this message.
Source§impl PartialEq for ProducerState
impl PartialEq for ProducerState
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 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