pub trait CommandExt {
    // Required method
    fn output_with_stdin<S: AsRef<[u8]>>(&mut self, input: S) -> Result<Output>;
}
Expand description

Extension methods for std::process::Command.

Required Methods§

source

fn output_with_stdin<S: AsRef<[u8]>>(&mut self, input: S) -> Result<Output>

Spawn this command, passing it the specified data on standard input.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl CommandExt for Command

source§

fn output_with_stdin<S>(&mut self, input: S) -> Result<Output>
where S: AsRef<[u8]>,

Implementors§