pub trait CmdRun {
    fn run(&mut self) -> Result<(), CmdSpawnError>;
}

Required Methods

spawn and wait child process

Errors

command.run() can result in CmdSpawnError:

  • CmdSpawnError::IO(std::io::Error) when spawn or wait fail
  • CmdSpawnError::Child(ChildError) when the child process exit with a failed status

Implementations on Foreign Types

Implementors