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§
Provided Methods§
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.