Enum unshare::Stdio [] [src]

pub enum Stdio {
    Pipe,
    Inherit,
    Null,
    Fd(Closing),
}

An enumeration that is used to configure stdio file descritors

The enumeration members might be non-stable, it's better to use one of the constructors to create an instance

Variants

PipeInheritNullFd(Closing)

Methods

impl Stdio
[src]

fn piped() -> Stdio

Pipe is created for child process

fn inherit() -> Stdio

The child inherits file descriptor from the parent process

fn null() -> Stdio

Stream is attached to /dev/null

fn to_fd(self, write: bool) -> Fd

Converts stdio definition to file descriptor definition (mostly needed internally)

Trait Implementations

impl FromRawFd for Stdio
[src]

unsafe fn from_raw_fd(fd: RawFd) -> Stdio

Constructs a new instances of Self from the given raw file descriptor. Read more