pub struct AbortTransactionSpec { /* private fields */ }Expand description
The identifiers required to abort a hanging transaction on a partition.
Corresponds to org.apache.kafka.clients.admin.AbortTransactionSpec.
producer_id is i64 and producer_epoch is i16 (Java long /
short); coordinator_epoch is i32.
Implementations§
Source§impl AbortTransactionSpec
impl AbortTransactionSpec
Sourcepub fn new(
topic_partition: TopicPartition,
producer_id: i64,
producer_epoch: i16,
coordinator_epoch: i32,
) -> Self
pub fn new( topic_partition: TopicPartition, producer_id: i64, producer_epoch: i16, coordinator_epoch: i32, ) -> Self
Creates a new AbortTransactionSpec.
Sourcepub fn topic_partition(&self) -> &TopicPartition
pub fn topic_partition(&self) -> &TopicPartition
The topic partition of the hanging transaction.
Sourcepub fn producer_id(&self) -> i64
pub fn producer_id(&self) -> i64
The producer id of the hanging transaction.
Sourcepub fn producer_epoch(&self) -> i16
pub fn producer_epoch(&self) -> i16
The producer epoch of the hanging transaction.
Sourcepub fn coordinator_epoch(&self) -> i32
pub fn coordinator_epoch(&self) -> i32
The coordinator epoch of the hanging transaction.
Trait Implementations§
Source§impl Clone for AbortTransactionSpec
impl Clone for AbortTransactionSpec
Source§fn clone(&self) -> AbortTransactionSpec
fn clone(&self) -> AbortTransactionSpec
Returns a duplicate 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 AbortTransactionSpec
impl Debug for AbortTransactionSpec
Source§impl Display for AbortTransactionSpec
impl Display for AbortTransactionSpec
Source§impl PartialEq for AbortTransactionSpec
impl PartialEq for AbortTransactionSpec
impl Eq for AbortTransactionSpec
impl StructuralPartialEq for AbortTransactionSpec
Auto Trait Implementations§
impl Freeze for AbortTransactionSpec
impl RefUnwindSafe for AbortTransactionSpec
impl Send for AbortTransactionSpec
impl Sync for AbortTransactionSpec
impl Unpin for AbortTransactionSpec
impl UnsafeUnpin for AbortTransactionSpec
impl UnwindSafe for AbortTransactionSpec
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more