Struct clonablechild::ClonableChild [] [src]

pub struct ClonableChild { /* fields omitted */ }

Representation of a clonable std::process::Child.

Methods

impl ClonableChild
[src]

Creates a new ClonableChild by consuming and wrapping the given Child.

Forces the child to exit. This is equivalent to sending a SIGKILL on unix platforms and calling TerminateProcess on Windows.

This method first tries to use the ordinary Child::kill(), but if that is blocked by another thread waiting for the child it will kill it itself in the same way Child::kill() would have done.

Returns the OS-assigned process identifier associated with this child. This value is obtained from Child::id() in ClonableChild::new() and then that value is returned every time.

Behaves just like Child::wait(), see documentation for that method.

Retrieve the stdin stream from the child if one exist. Will only return something on the first call.

Retrieve the stdout stream from the child if one exist. Will only return something on the first call.

Retrieve the stderr stream from the child if one exist. Will only return something on the first call.

Trait Implementations

impl Clone for ClonableChild
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more