pub struct WritableTxnMarker {
pub producer_id: i64,
pub producer_epoch: i16,
pub transaction_result: bool,
pub topics: Vec<WritableTxnMarkerTopic>,
pub coordinator_epoch: i32,
pub transaction_version: i8,
pub _unknown_tagged_fields: Vec<RawTaggedField>,
}Fields§
§producer_id: i64The current producer ID.
producer_epoch: i16The current epoch associated with the producer ID.
transaction_result: boolThe result of the transaction to write to the partitions (false = ABORT, true = COMMIT).
topics: Vec<WritableTxnMarkerTopic>Each topic that we want to write transaction marker(s) for.
coordinator_epoch: i32Epoch associated with the transaction state partition hosted by this transaction coordinator.
transaction_version: i8Transaction version of the marker. Ex: 0/1 = legacy (TV0/TV1), 2 = TV2 etc.
_unknown_tagged_fields: Vec<RawTaggedField>Implementations§
Source§impl WritableTxnMarker
impl WritableTxnMarker
pub fn with_producer_id(self, value: i64) -> Self
pub fn with_producer_epoch(self, value: i16) -> Self
pub fn with_transaction_result(self, value: bool) -> Self
pub fn with_topics(self, value: Vec<WritableTxnMarkerTopic>) -> Self
pub fn with_coordinator_epoch(self, value: i32) -> Self
pub fn with_transaction_version(self, value: i8) -> 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 WritableTxnMarker
impl Clone for WritableTxnMarker
Source§fn clone(&self) -> WritableTxnMarker
fn clone(&self) -> WritableTxnMarker
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 WritableTxnMarker
impl Debug for WritableTxnMarker
Source§impl Default for WritableTxnMarker
impl Default for WritableTxnMarker
Source§impl PartialEq for WritableTxnMarker
impl PartialEq for WritableTxnMarker
Source§fn eq(&self, other: &WritableTxnMarker) -> bool
fn eq(&self, other: &WritableTxnMarker) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for WritableTxnMarker
Auto Trait Implementations§
impl Freeze for WritableTxnMarker
impl RefUnwindSafe for WritableTxnMarker
impl Send for WritableTxnMarker
impl Sync for WritableTxnMarker
impl Unpin for WritableTxnMarker
impl UnsafeUnpin for WritableTxnMarker
impl UnwindSafe for WritableTxnMarker
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