Trait ConsoleHandler

Source
pub trait ConsoleHandler {
    // Required method
    fn set_output_stream(&mut self, out: Option<Box<dyn Write + Send>>);

    // Provided method
    fn raw_input(&mut self, _data: &[u8]) -> Result<usize> { ... }
}
Expand description

Trait for devices that handle raw non-blocking I/O requests.

Required Methods§

Source

fn set_output_stream(&mut self, out: Option<Box<dyn Write + Send>>)

Set the stream to receive raw output from this emulated device.

Provided Methods§

Source

fn raw_input(&mut self, _data: &[u8]) -> Result<usize>

Send raw input to this emulated device.

Implementors§