enumstd.process.Child.StdIo[src]

Behavior of the child process's standard input, output, and error streams.

Fields

Inherit

Inherit the stream from the parent process.

Ignore

Pass a null stream to the child process. This is /dev/null on POSIX and NUL on Windows.

Pipe

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.

Close

Close the stream after the child process spawns.

Source Code

Source code
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,
}