Same as [`Child::read()`], but doesn't wait for the process to finish and doesn't take the exit status of the process into account.
(&mut self, ostream: Ostream)
| 596 | /// Same as [`Child::read()`], but doesn't wait for the process to finish |
| 597 | /// and doesn't take the exit status of the process into account. |
| 598 | pub fn read_no_wait(&mut self, ostream: Ostream) -> Result<String> { |
| 599 | let mut output = String::new(); |
| 600 | self.expect_ostream(ostream) |
| 601 | .read_to_string(&mut output) |
| 602 | .map_err(|err| self.io_read_err(err, ostream, "utf8"))?; |
| 603 | |
| 604 | self.log_output(ostream, &format_args!("[utf8]:\n{}", output)); |
| 605 | |
| 606 | Ok(output) |
| 607 | } |
| 608 | |
| 609 | /// Same as [`Child::read_no_wait()`], but reads raw bytes. |
| 610 | pub fn read_bytes_no_wait(&mut self, ostream: Ostream) -> Result<Vec<u8>> { |
no test coverage detected