pub struct JoinHandle<T> { /* private fields */ }
Expand description

An owned permission to join on a process (block on its termination).

The join handle can be used to join a process but also provides the ability to kill it.

Implementations

Returns the process ID if available.

The process ID is unavailable when pooled calls are not scheduled to processes.

Kill the child process.

If the join handle was created from a pool this call will do one of two things depending on the situation:

  • if the call was already picked up by the process, the process will be killed.
  • if the call was not yet scheduled to a process it will be cancelled.

Fetch the stdin handle if it has been captured

Fetch the stdout handle if it has been captured

Fetch the stderr handle if it has been captured

Wait for the child process to return a result.

If the join handle was created from a pool the join is virtualized.

Like join but with a timeout.

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

Performs the conversion.

Performs the conversion.

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.