#[non_exhaustive]pub enum TransactionOutcome {
Committed,
RolledBack,
Detached,
}Expand description
Result of finalizing a TransactionSession.
Returned by TransactionSession::commit and
TransactionSession::rollback; #[non_exhaustive] so slice 2 can add
outcomes without breaking implementors. TransactionOutcome::Detached is
the observable counterpart of a connection that was dropped rather than
returned to the pool (requirement “Uncertain finalization detaches the
connection”).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Committed
COMMIT was acknowledged by the database.
RolledBack
ROLLBACK was acknowledged by the database.
Detached
Finalization could not be acknowledged and the connection was discarded.
Trait Implementations§
Source§impl Clone for TransactionOutcome
impl Clone for TransactionOutcome
impl Copy for TransactionOutcome
Source§impl Debug for TransactionOutcome
impl Debug for TransactionOutcome
impl Eq for TransactionOutcome
Source§impl PartialEq for TransactionOutcome
impl PartialEq for TransactionOutcome
impl StructuralPartialEq for TransactionOutcome
Auto Trait Implementations§
impl Forget for TransactionOutcome
impl Freeze for TransactionOutcome
impl Move for TransactionOutcome
impl RefUnwindSafe for TransactionOutcome
impl Send for TransactionOutcome
impl Sync for TransactionOutcome
impl Unpin for TransactionOutcome
impl UnsafeUnpin for TransactionOutcome
impl UnwindSafe for TransactionOutcome
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