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

Variants

Inherit

Null

MakePipe

Fd(FileDesc)

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.