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