pub fn return_popped(&mut self, element: TxData) {
        assert!(
            self.sent_pending_txs > 0,
            "No transactions are expected to be returned"
        );

        match &element.op_type {
            OperationType::Commit => {
                self.commit_operations.return_popped(element);
            }
            OperationType::Verify => {
                self.verify_operations.return_popped(element);
            }
            OperationType::Withdraw => {
                self.withdraw_operations.return_popped(element);
            }
        }

        // We've incremented the counter when transaction was popped.
        // Now it's returned and counter should be decremented back.
        self.sent_pending_txs -= 1;
    }
/// Returns a previously popped element to the front of the queue.
Returns a previously popped element to the front of the queue.
Returns a previously popped element to the front of the queue .
pub fn return_popped(&mut self, element: TxData) {
        assert!(
            self.sent_pending_txs > 0,
            "No transactions are expected to be returned"
        );
        match &element.op_type {
            OperationType::Commit => {
                self.commit_operations.return_popped(element);
            }
            OperationType::Verify => {
                self.verify_operations.return_popped(element);
            }
            OperationType::Withdraw => {
                self.withdraw_operations.return_popped(element);
            }
        }
        // We've incremented the counter when transaction was popped.
        // Now it's returned and counter should be decremented back.
        self.sent_pending_txs -= 1;
    }
pub fn return_popped ( & mut self , element : TxData ) { assert ! ( self sent_pending_txs 0 " " ) ; match & element . op_type { OperationType :: Commit => { self . commit_operations . return_popped ( element ) ; } OperationType :: Verify => { self . verify_operations . return_popped ( element ) ; } OperationType :: Withdraw => { self . withdraw_operations . return_popped ( element ) ; } } // We've incremented the counter when transaction was popped. // Now it's returned and counter should be decremented back. self . sent_pending_txs -= 1 ; }
Returns a previously popped element to the front of the queue.
Returns a previously popped element to the front of the queue .
&mut self
element
TxData