Trait system_harness::SystemTerminal

source ·
pub trait SystemTerminal: Write + Read {
    // Required method
    fn send_key(&mut self, key: Key) -> Result<(), Error>;

    // Provided method
    fn send_command(&mut self, command: &str) -> Result<(), Error> { ... }
}
Expand description

A trait representing a harnessed system that should be treated as a terminal

Required Methods§

source

fn send_key(&mut self, key: Key) -> Result<(), Error>

Send key to emulator

Provided Methods§

source

fn send_command(&mut self, command: &str) -> Result<(), Error>

Send a command to the terminal

Implementors§