pub struct AbortTransactionSpec { /* private fields */ }Expand description
The identifiers required to abort a hanging transaction on a partition.
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.
§Arguments
topic_partition- the partition of the hanging transactionproducer_id- the producer id of the hanging transactionproducer_epoch- the producer epoch of the hanging transactioncoordinator_epoch- the coordinator epoch of the hanging transaction
Sourcepub fn topic_partition(&self) -> &TopicPartition
pub fn topic_partition(&self) -> &TopicPartition
Returns the topic partition of the hanging transaction.
Sourcepub fn producer_id(&self) -> i64
pub fn producer_id(&self) -> i64
Returns the producer id of the hanging transaction.
Sourcepub fn producer_epoch(&self) -> i16
pub fn producer_epoch(&self) -> i16
Returns the producer epoch of the hanging transaction.
Sourcepub fn coordinator_epoch(&self) -> i32
pub fn coordinator_epoch(&self) -> i32
Returns 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 Hash for AbortTransactionSpec
impl Hash 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