devela::_dep::crossterm

Trait ExecutableCommand

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

An interface for types that can directly execute commands.

Required Methods§

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

Executes the given command directly.

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§

§

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