[−][src]Function os_pipe::dup_stderr
pub fn dup_stderr() -> Result<PipeWriter>
Get a duplicated copy of the current process's standard error, as a
PipeWriter
.
Writing directly to this pipe isn't recommended, because it's not
synchronized with std::io::stderr
. PipeWriter
implements
Into<Stdio>
, so it can be passed directly to Command::stdout
or
Command::stderr
. This can be useful if you want the child's stdout to go
to the parent's stderr.