Trait assert_cmd::CommandStdInExt [−][src]
pub trait CommandStdInExt { fn with_stdin<S>(self, buffer: S) -> StdInCommand
where
S: Into<Vec<u8>>; }
Extend Command
with a helper to pass a buffer to stdin
Required Methods
fn with_stdin<S>(self, buffer: S) -> StdInCommand where
S: Into<Vec<u8>>,
S: Into<Vec<u8>>,
Write buffer
to stdin
when the command is run.
Examples
use assert_cmd::*; use std::process::Command; Command::new("cat") .with_stdin("42") .unwrap();
Implementations on Foreign Types
impl CommandStdInExt for Command
[src]
impl CommandStdInExt for Command
fn with_stdin<S>(self, buffer: S) -> StdInCommand where
S: Into<Vec<u8>>,
[src]
fn with_stdin<S>(self, buffer: S) -> StdInCommand where
S: Into<Vec<u8>>,