pub trait ExecutableCommand {
    // Required method
    fn execute(&mut self, command: impl Command) -> Result<&mut Self, Error>;
}
Available on crate feature crossterm only.
Expand description

An interface for types that can directly execute commands.

Required Methods§

source

fn execute(&mut self, command: impl Command) -> Result<&mut Self, Error>

Executes the given command directly.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<T> ExecutableCommand for T
where T: Write + ?Sized,