pub struct AbortedTransaction {
pub producer_id: i64,
pub first_offset: i64,
pub _unknown_tagged_fields: Vec<RawTaggedField>,
}Fields§
§producer_id: i64The producer id associated with the aborted transaction.
first_offset: i64The first offset in the aborted transaction.
_unknown_tagged_fields: Vec<RawTaggedField>Implementations§
Source§impl AbortedTransaction
impl AbortedTransaction
pub fn with_producer_id(self, value: i64) -> Self
pub fn with_first_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 AbortedTransaction
impl Clone for AbortedTransaction
Source§fn clone(&self) -> AbortedTransaction
fn clone(&self) -> AbortedTransaction
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 AbortedTransaction
impl Debug for AbortedTransaction
Source§impl Default for AbortedTransaction
impl Default for AbortedTransaction
Source§impl PartialEq for AbortedTransaction
impl PartialEq for AbortedTransaction
Source§fn eq(&self, other: &AbortedTransaction) -> bool
fn eq(&self, other: &AbortedTransaction) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AbortedTransaction
Auto Trait Implementations§
impl Freeze for AbortedTransaction
impl RefUnwindSafe for AbortedTransaction
impl Send for AbortedTransaction
impl Sync for AbortedTransaction
impl Unpin for AbortedTransaction
impl UnsafeUnpin for AbortedTransaction
impl UnwindSafe for AbortedTransaction
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