Type Alias io_plugin::Child

source ·
pub type Child = Child;

Aliased Type§

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

Fields§

§stdin: Option<ChildStdin>

The handle for writing to the child’s standard input (stdin), if it has been captured. To avoid partially moving the child and thus blocking yourself from calling functions on child while using stdin, you might find it helpful to do:

let stdin = child.stdin.take().unwrap();
§stdout: Option<ChildStdout>

The handle for reading from the child’s standard output (stdout), if it has been captured. You might find it helpful to do

let stdout = child.stdout.take().unwrap();

to avoid partially moving the child and thus blocking yourself from calling functions on child while using stdout.

§stderr: Option<ChildStderr>

The handle for reading from the child’s standard error (stderr), if it has been captured. You might find it helpful to do

let stderr = child.stderr.take().unwrap();

to avoid partially moving the child and thus blocking yourself from calling functions on child while using stderr.