pub enum Stdio {
    Inherit,
    Null,
    MakePipe,
    Fd(FileDesc),
}
Expand description

Description of a stdio stream for a child process

Variants

Inherit

Inherit the parent’s stdio stream

Null

Use a null stream, like /dev/null

MakePipe

Use a pipe to the input or output of the child process

Fd(FileDesc)

Use an existing file descriptor as the stdio stream

Implementations

Create a pipe for this file descriptor and use it in the child process as the given file descriptor to facilitate input or output redirection. See MemFdExecutable::stdin for an example.

Use a null file descriptor, like /dev/null, to either provide no input or to discard output. See MemFdExecutable::stdout for an example.

Inherit the parent’s file descriptor. this is the default behavior, but is generally not the desired behavior.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.