pub fn grant_write_lock(&mut self, guard: OwnedMutexGuard<()>) {
        match self {
            TransactionStatus::Default => panic!("cannot grant write lock to txn not yet started"),
            TransactionStatus::Started(txn)
            | TransactionStatus::InTransaction(txn)
            | TransactionStatus::InTransactionImplicit(txn)
            | TransactionStatus::Failed(txn) => txn.grant_write_lock(guard),
        }
    }
/// Grants the write lock to the inner transaction.
///
/// # Panics
/// If `self` is `TransactionStatus::Default`, which indicates that the
/// transaction is idle, which is not appropriate to assign the
/// coordinator's write lock to.
Grants the write lock to the inner transaction.
Grants the write lock to the inner transaction .
pub fn grant_write_lock(&mut self, guard: OwnedMutexGuard<()>) {
        match self {
            TransactionStatus::Default => panic!("cannot grant write lock to txn not yet started"),
            TransactionStatus::Started(txn)
            | TransactionStatus::InTransaction(txn)
            | TransactionStatus::InTransactionImplicit(txn)
            | TransactionStatus::Failed(txn) => txn.grant_write_lock(guard),
        }
    }
pub fn grant_write_lock ( & mut self , guard : OwnedMutexGuard < ( ) > ) { match self { TransactionStatus :: Default => panic ! ( " " ) , TransactionStatus :: Started ( txn ) | TransactionStatus :: InTransaction ( txn ) | TransactionStatus :: InTransactionImplicit ( txn ) | TransactionStatus :: Failed ( txn ) => txn . grant_write_lock ( guard ) , } }
Grants the write lock to the inner transaction.
Grants the write lock to the inner transaction .
&mut self
guard
OwnedMutexGuard<()>
&mut self
guard
OwnedMutexGuard<()>
panics
If `self` is `TransactionStatus::Default`, which indicates that the
transaction is idle, which is not appropriate to assign the
coordinator's write lock to.
If ` self ` is ` TransactionStatus :: Default ` which indicates that the transaction is idle which is not appropriate to assign the coordinator ' s write lock to .