pub trait CmdPipe {
    fn pipe(&mut self, piped_command: &mut Command) -> Result<Output, Error>;
}

Required Methods

Pipe stdout of self to stdin of piped_command

Errors

command.pipe(cmd) can result in std::io::Error

  • when spawn or wait fail
  • when there is an issue with the stdout / stdin pipe (std::io::ErrorKind::BrokenPipe)

Implementations on Foreign Types

Implementors