pub enum TxnState {
Open,
Committing,
Committed,
Aborting,
Aborted,
Errored,
}Expand description
Result of committing or aborting a Transaction. Re-exported from magnetar-proto.
Lifecycle of a transaction tracked by TxnClient.
Mirrors TransactionImpl.State in the Java client.
Variants§
Open
Transaction is open and accepting add_partition / add_subscription / sends.
Committing
end_txn(Commit) has been issued; awaiting CommandEndTxnResponse.
Committed
Transaction has been committed by the TC.
Aborting
end_txn(Abort) has been issued; awaiting CommandEndTxnResponse.
Aborted
Transaction has been aborted (either by the user or due to an error).
Errored
Transaction terminated due to a broker-side error (unrecoverable).
Trait Implementations§
impl Copy for TxnState
impl Eq for TxnState
impl StructuralPartialEq for TxnState
Auto Trait Implementations§
impl Freeze for TxnState
impl RefUnwindSafe for TxnState
impl Send for TxnState
impl Sync for TxnState
impl Unpin for TxnState
impl UnsafeUnpin for TxnState
impl UnwindSafe for TxnState
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