pub fn write_error(&mut self, error: io::Error) -> &mut Self {
        let error = Some(error.into());
        self.tx.send(Action::WriteError(error)).unwrap();
        self
    }
/// Sequence a `write` operation error.
///
/// The next operation in the mock's script will be to expect a `write`
/// call error.
Sequence a `write` operation error.
The next operation in the mock's script will be to expect a `write`
call error.
Sequence a ` write ` operation error . The next operation in the mock ' s script will be to expect a ` write ` call error .
pub fn write_error(&mut self, error: io::Error) -> &mut Self {
        let error = Some(error.into());
        self.tx.send(Action::WriteError(error)).unwrap();
        self
    }
pub fn write_error ( & mut self , error : io :: Error ) -> & mut Self { let error = Some ( error . into ( ) ) ; self . tx . send ( Action :: WriteError ( error ) ) . unwrap ( ) ; self }
Sequence a `write` operation error.
Sequence a ` write ` operation error .
&mut self
error
io::Error