pub enum TransactionState {
Open,
Prepared,
Committed,
Aborted,
MustAbort,
}Expand description
Transaction state.
Variants§
Open
Transaction is open and can be used for operations.
Prepared
Transaction has been prepared (XA two-phase commit phase 1).
Locks are still held; the only valid transitions are
Transaction::resolved_commit_after_prepare and
Transaction::resolved_abort_after_prepare. Direct
commit() / abort() are protocol errors.
Committed
Transaction has been committed.
Aborted
Transaction has been aborted.
MustAbort
Transaction must be aborted (error occurred).
Trait Implementations§
Source§impl Clone for TransactionState
impl Clone for TransactionState
Source§fn clone(&self) -> TransactionState
fn clone(&self) -> TransactionState
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 moreimpl Copy for TransactionState
Source§impl Debug for TransactionState
impl Debug for TransactionState
impl Eq for TransactionState
Source§impl PartialEq for TransactionState
impl PartialEq for TransactionState
Source§fn eq(&self, other: &TransactionState) -> bool
fn eq(&self, other: &TransactionState) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TransactionState
Auto Trait Implementations§
impl Freeze for TransactionState
impl RefUnwindSafe for TransactionState
impl Send for TransactionState
impl Sync for TransactionState
impl Unpin for TransactionState
impl UnsafeUnpin for TransactionState
impl UnwindSafe for TransactionState
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.