pub struct DummyIO {}
Expand description
An IO
implementation for when no IO should occur. Intended for non IO
tests.
Implementations§
Trait Implementations§
Source§impl IO for DummyIO
impl IO for DummyIO
Source§fn run_command(
&mut self,
_ui: &mut UILock<'_>,
_command: String,
) -> Result<(), IOError>
fn run_command( &mut self, _ui: &mut UILock<'_>, _command: String, ) -> Result<(), IOError>
Run a lone command (unrelated from the buffer) Read more
Source§fn run_read_command(
&mut self,
_ui: &mut UILock<'_>,
_command: String,
) -> Result<String, IOError>
fn run_read_command( &mut self, _ui: &mut UILock<'_>, _command: String, ) -> Result<String, IOError>
Run a read command, collecting stdout to add into buffer Read more
Source§fn run_write_command(
&mut self,
_ui: &mut UILock<'_>,
_command: String,
_input: LinesIter<'_>,
) -> Result<usize, IOError>
fn run_write_command( &mut self, _ui: &mut UILock<'_>, _command: String, _input: LinesIter<'_>, ) -> Result<usize, IOError>
Run a write command, receiving part of buffer via stdin Read more
Source§fn run_transform_command(
&mut self,
_ui: &mut UILock<'_>,
_command: String,
_input: LinesIter<'_>,
) -> Result<String, IOError>
fn run_transform_command( &mut self, _ui: &mut UILock<'_>, _command: String, _input: LinesIter<'_>, ) -> Result<String, IOError>
Run a transform command, taking part of buffer via stdin and returning it
via stdout. Read more
Auto Trait Implementations§
impl Freeze for DummyIO
impl RefUnwindSafe for DummyIO
impl Send for DummyIO
impl Sync for DummyIO
impl Unpin for DummyIO
impl UnwindSafe for DummyIO
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more