Trait CommandExecutor

Source
pub trait CommandExecutor {
    // Required method
    fn execute(&mut self) -> Result<(String, String)>;
}
Expand description

Interface for executing a command

Required Methods§

Source

fn execute(&mut self) -> Result<(String, String)>

Execute the command and return the stdout and stderr

§Errors

Returns an error if the command fails

Implementations on Foreign Types§

Source§

impl CommandExecutor for Command

Implement the CommandExecutor trait for Command

Source§

fn execute(&mut self) -> Result<(String, String)>

Execute the command and return the stdout and stderr

Implementors§