pub fn expect(&mut self, transactions: &[Transaction<Word>]) {
        let mut lock = self
            .expected_modes
            .lock()
            .expect("unable to lock serial mock in call to expect");
        *lock = Some(
            transactions
                .iter()
                .fold(VecDeque::new(), |mut modes, transaction| {
                    modes.extend(transaction.mode.clone());
                    modes
                }),
        );
    }
/// Set expectations on the interface
///
/// This is a list of transactions to be executed in order.
/// Note that setting this will overwrite any existing expectations
Set expectations on the interface
This is a list of transactions to be executed in order.
Note that setting this will overwrite any existing expectations
Set expectations on the interface This is a list of transactions to be executed in order . Note that setting this will overwrite any existing expectations
pub fn expect(&mut self, transactions: &[Transaction<Word>]) {
        let mut lock = self
            .expected_modes
            .lock()
            .expect("unable to lock serial mock in call to expect");
        *lock = Some(
            transactions
                .iter()
                .fold(VecDeque::new(), |mut modes, transaction| {
                    modes.extend(transaction.mode.clone());
                    modes
                }),
        );
    }
pub fn expect ( & mut self , transactions : & [ Transaction < Word > ] ) { let mut lock = self . expected_modes . lock ( ) . expect ( " " ) ; * lock = Some ( transactions . iter ( ) . fold ( VecDeque :: new ( ) , | mut modes , transaction | { modes . extend ( transaction . mode . clone ( ) ) ; modes } ) , ) ; }
Set expectations on the interface
This is a list of transactions to be executed in order.
Set expectations on the interface This is a list of transactions to be executed in order .
&mut self
transactions
&[Transaction<Word>]
&mut self
transactions
&[Transaction<Word>]