pub fn done(&mut self) {
        let mut lock = self
            .expected_modes
            .lock()
            .expect("unable to lock serial mock in call to done");
        let modes = lock.take().expect("attempted to take None from Optional");
        assert!(
            modes.is_empty(),
            "serial mock has unsatisfied expectations after call to done"
        );
    }
/// Asserts that all expectations up to this point were satisfied.
/// Panics if there are unsatisfied expectations.
Asserts that all expectations up to this point were satisfied.
Panics if there are unsatisfied expectations.
Asserts that all expectations up to this point were satisfied . Panics if there are unsatisfied expectations .
pub fn done(&mut self) {
        let mut lock = self
            .expected_modes
            .lock()
            .expect("unable to lock serial mock in call to done");
        let modes = lock.take().expect("attempted to take None from Optional");
        assert!(
            modes.is_empty(),
            "serial mock has unsatisfied expectations after call to done"
        );
    }
pub fn done ( & mut self ) { let mut lock = self . expected_modes . lock ( ) . expect ( " " ) ; let modes = lock . take ( ) . expect ( " " ) ; assert ! ( modes is_empty ( ) " " ) ; }
Asserts that all expectations up to this point were satisfied.
Asserts that all expectations up to this point were satisfied .
&mut self
&mut self