pub fn new(underlying: Box<dyn Ledger>, observer: LedgerObserver) -> Self {
        InterleavingTestLedger {
            underlying,
            observer,
        }
    }
/// The ledger intercepts calls to an underlying ledger implementation,
/// sends the reified calls over the provided observer channel, and
/// blocks. The receiver side of the channel can then inspect the
/// results, and decide at what point to go ahead with the call to the
/// underlying ledger, or, alternatively, return an error. This is done
/// through a one-shot channel, the sender side of which is sent to the
/// observer.
The ledger intercepts calls to an underlying ledger implementation,
sends the reified calls over the provided observer channel, and
blocks. The receiver side of the channel can then inspect the
results, and decide at what point to go ahead with the call to the
underlying ledger, or, alternatively, return an error. This is done
through a one-shot channel, the sender side of which is sent to the
observer.
The ledger intercepts calls to an underlying ledger implementation sends the reified calls over the provided observer channel and blocks . The receiver side of the channel can then inspect the results and decide at what point to go ahead with the call to the underlying ledger or alternatively return an error . This is done through a one - shot channel the sender side of which is sent to the observer .
pub fn new(underlying: Box<dyn Ledger>, observer: LedgerObserver) -> Self {
        InterleavingTestLedger {
            underlying,
            observer,
        }
    }
pub fn new ( underlying : Box < dyn Ledger > , observer : LedgerObserver ) -> Self { InterleavingTestLedger { underlying , observer , } }
The ledger intercepts calls to an underlying ledger implementation,
sends the reified calls over the provided observer channel, and
blocks.
The ledger intercepts calls to an underlying ledger implementation sends the reified calls over the provided observer channel and blocks .
underlying
Box<dyn Ledger>
observer
LedgerObserver
underlying
Box<dyn Ledger>
observer
LedgerObserver