pub fn fail_transaction(mut self) -> Self {
        match self.transaction {
            TransactionStatus::Default => unreachable!(),
            TransactionStatus::Started(txn)
            | TransactionStatus::InTransactionImplicit(txn)
            | TransactionStatus::InTransaction(txn) => {
                self.transaction = TransactionStatus::Failed(txn);
            }
            TransactionStatus::Failed(_) => {}
        };
        self
    }
/// Marks the current transaction as failed.
Marks the current transaction as failed.
Marks the current transaction as failed .
pub fn fail_transaction(mut self) -> Self {
        match self.transaction {
            TransactionStatus::Default => unreachable!(),
            TransactionStatus::Started(txn)
            | TransactionStatus::InTransactionImplicit(txn)
            | TransactionStatus::InTransaction(txn) => {
                self.transaction = TransactionStatus::Failed(txn);
            }
            TransactionStatus::Failed(_) => {}
        };
        self
    }
pub fn fail_transaction ( mut self ) -> Self { match self . transaction { TransactionStatus :: Default => unreachable ! ( ) , TransactionStatus :: Started ( txn ) | TransactionStatus :: InTransactionImplicit ( txn ) | TransactionStatus :: InTransaction ( txn ) => { self . transaction = TransactionStatus :: Failed ( txn ) ; } TransactionStatus :: Failed ( _ ) => { } } ; self }
Marks the current transaction as failed.
Marks the current transaction as failed .
mut self
mut self