CommandExt

Trait CommandExt 

Source
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.

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.

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§