enum StdIo [src]
Behavior of the child process's standard input, output, and error
streams.
Fields
InheritInherit the stream from the parent process.
IgnorePass a null stream to the child process.
This is /dev/null on POSIX and NUL on Windows.
PipeCreate a pipe for the stream.
The corresponding field (stdout, stderr, or stdin)
will be assigned a File object that can be used
to read from or write to the pipe.
CloseClose the stream after the child process spawns.
Source
pub const StdIo = enum {
/// Inherit the stream from the parent process.
Inherit,
/// Pass a null stream to the child process.
/// This is /dev/null on POSIX and NUL on Windows.
Ignore,
/// Create a pipe for the stream.
/// The corresponding field (`stdout`, `stderr`, or `stdin`)
/// will be assigned a `File` object that can be used
/// to read from or write to the pipe.
Pipe,
/// Close the stream after the child process spawns.
Close,
}