pub struct Child {
    pub stdin: Option<ChildStdin>,
    pub stdout: Option<ChildStdout>,
    pub stderr: Option<ChildStderr>,
    /* private fields */
}
Expand description

A child process created from a MemFdExecutable with handles to input and output streams

Fields

stdin: Option<ChildStdin>

The input stream to the child process

stdout: Option<ChildStdout>

The output stream from the child process

stderr: Option<ChildStderr>

The error stream from the child process

Implementations

Kill the child process

Return the id of the child process, probably a PID

Wait for the child process to exit, returning the exit status code

Try and wait for the child process to exit, returning the exit status code if it has

Wait for the child process to exit, returning the exit status code and the output streams

Trait Implementations

Formats the value using the given formatter. Read more

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.