Enum std::old_io::process::StdioContainerUnstable [-] [+] [src]

pub enum StdioContainer {
    Ignored,
    InheritFd(c_int),
    CreatePipe(bool, bool),
}

Describes what to do with a standard io stream for a child process.

Variants

Ignored

This stream will be ignored. This is the equivalent of attaching the stream to /dev/null

InheritFd

The specified file descriptor is inherited for the stream which it is specified for. Ownership of the file descriptor is not taken, so the caller must clean it up.

CreatePipe

Creates a pipe for the specified file descriptor which will be created when the process is spawned.

The first boolean argument is whether the pipe is readable, and the second is whether it is writable. These properties are from the view of the child process, not the parent process.

Trait Implementations

Derived Implementations

impl Copy for StdioContainer

impl Clone for StdioContainer

fn clone(&self) -> StdioContainer

fn clone_from(&mut self, source: &Self)