Trait assert_cmd::CommandStdInExt [−][src]
pub trait CommandStdInExt { fn with_stdin(&mut self) -> StdInCommandBuilder; }
Write to stdin
of a Command
.
Required Methods
fn with_stdin(&mut self) -> StdInCommandBuilder
Write buffer
to stdin
when the command is run.
Examples
use assert_cmd::prelude::*; use std::process::Command; Command::new("cat") .arg("-A") .with_stdin() .buffer("42") .unwrap();
Implementations on Foreign Types
impl CommandStdInExt for Command
[src]
impl CommandStdInExt for Command
fn with_stdin(&mut self) -> StdInCommandBuilder
[src]
fn with_stdin(&mut self) -> StdInCommandBuilder