pub trait CmdToFile {
fn to_file(
&mut self,
file: File,
stderr_file: Option<File>
) -> Result<(), CmdSpawnError>;
}Required Methods
spawn, wait and stdout to file for the child process,
optional stderr to stderr_file
Errors
command.to_file(file, err_file) can result in CmdSpawnError:
CmdSpawnError::IO(std::io::Error)whenspawnorwaitfailCmdSpawnError::Child(ChildError)when the child process exit with a failed status