Trait SystemTerminal

Source
pub trait SystemTerminal:
    AsyncWrite
    + AsyncRead
    + Unpin {
    // Required method
    fn send_key(&mut self, key: Key) -> impl Future<Output = Result<(), Error>>;

    // Provided method
    fn send_command(
        &mut self,
        command: &str,
    ) -> impl Future<Output = 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) -> impl Future<Output = Result<(), Error>>

Send key to emulator

Provided Methods§

Source

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

Send a command to the terminal

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§