pub fn process_using_child<C: AsRef<OsStr>, I: IntoIterator<Item = S>, S: AsRef<OsStr>>(
command: C,
args: I,
data: &[u8],
) -> Result<(Vec<u8>, Vec<u8>), ChildCommandError>Expand description
Write data to a child process’ stdin, and return the process’ stdout and stderr.
§Panics
- If handle to child’s
stdincould not be taken. - If the writer thread panics.