Struct ::process::Child

A running child process

Methods

fn stdin(self) -> Option

Attempt to take the stdin of the child process.

Once taken this can not be taken again.

fn stdout(self) -> Option

Attempt to take the stdout of the child process.

Once taken this can not be taken again.

fn stderr(self) -> Option

Attempt to take the stderr of the child process.

Once taken this can not be taken again.

fn id(self) -> Option

Attempt to get the OS process id of the child process.

This will return None after the child process has completed.

async fn kill(self) -> Result

Sends a signal to the child process.

async fn wait(self) -> Result

Attempt to wait for the child process to exit.

This will not capture output, use [wait_with_output] for that.

Protocols

protocol string_debug
println("{:?}", value)

Allows the value to be debug printed.