pub enum TransactionState {
Started,
Active,
Committed,
RolledBack,
Failed,
Unknown,
}Expand description
Transaction state metadata.
Variants§
Started
Transaction has started.
Active
Transaction is active.
Committed
Transaction is committed.
RolledBack
Transaction is rolled back.
Failed
Transaction failed.
Unknown
State is unknown.
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 moreSource§impl Debug for TransactionState
impl Debug for TransactionState
Source§impl Default for TransactionState
impl Default for TransactionState
Source§fn default() -> TransactionState
fn default() -> TransactionState
Returns the “default value” for a type. Read more
Source§impl Hash for TransactionState
impl Hash for TransactionState
Source§impl Ord for TransactionState
impl Ord for TransactionState
Source§fn cmp(&self, other: &TransactionState) -> Ordering
fn cmp(&self, other: &TransactionState) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
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 ==.Source§impl PartialOrd for TransactionState
impl PartialOrd for TransactionState
impl Copy for TransactionState
impl Eq for TransactionState
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