Write `buffer` to `stdin` when the `Command` is run. # Examples ```rust use assert_cmd::Command; let mut cmd = Command::new("cat") .arg("-et") .write_stdin("42") .assert() .stdout("42"); ```
(&mut self, buffer: S)
| 86 | /// .stdout("42"); |
| 87 | /// ``` |
| 88 | pub fn write_stdin<S>(&mut self, buffer: S) -> &mut Self |
| 89 | where |
| 90 | S: Into<Vec<u8>>, |
| 91 | { |
| 92 | self.stdin = Some(bstr::BString::from(buffer.into())); |
| 93 | self |
| 94 | } |
| 95 | |
| 96 | /// Error out if a timeout is reached |
| 97 | /// |
no outgoing calls