pub struct TransactionState {
pub error_code: i16,
pub transactional_id: KafkaString,
pub transaction_state: KafkaString,
pub transaction_timeout_ms: i32,
pub transaction_start_time_ms: i64,
pub producer_id: i64,
pub producer_epoch: i16,
pub topics: Vec<TopicData>,
pub _unknown_tagged_fields: Vec<RawTaggedField>,
}Fields§
§error_code: i16The error code.
transactional_id: KafkaStringThe transactional id.
transaction_state: KafkaStringThe current transaction state of the producer.
transaction_timeout_ms: i32The timeout in milliseconds for the transaction.
transaction_start_time_ms: i64The start time of the transaction in milliseconds.
producer_id: i64The current producer id associated with the transaction.
producer_epoch: i16The current epoch associated with the producer id.
topics: Vec<TopicData>The set of partitions included in the current transaction (if active). When a transaction is preparing to commit or abort, this will include only partitions which do not have markers.
_unknown_tagged_fields: Vec<RawTaggedField>Implementations§
Source§impl TransactionState
impl TransactionState
pub fn with_error_code(self, value: i16) -> Self
pub fn with_transactional_id(self, value: KafkaString) -> Self
pub fn with_transaction_state(self, value: KafkaString) -> Self
pub fn with_transaction_timeout_ms(self, value: i32) -> Self
pub fn with_transaction_start_time_ms(self, value: i64) -> Self
pub fn with_producer_id(self, value: i64) -> Self
pub fn with_producer_epoch(self, value: i16) -> Self
pub fn with_topics(self, value: Vec<TopicData>) -> 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 TransactionState
impl Clone for TransactionState
Source§fn clone(&self) -> TransactionState
fn clone(&self) -> TransactionState
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 TransactionState
impl Debug for TransactionState
Source§impl Default for TransactionState
impl Default for TransactionState
Source§impl PartialEq for TransactionState
impl PartialEq for TransactionState
Source§fn eq(&self, other: &TransactionState) -> bool
fn eq(&self, other: &TransactionState) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TransactionState
Auto Trait Implementations§
impl !Freeze for TransactionState
impl RefUnwindSafe for TransactionState
impl Send for TransactionState
impl Sync for TransactionState
impl Unpin for TransactionState
impl UnsafeUnpin for TransactionState
impl UnwindSafe for TransactionState
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