pub struct ForegroundProcess { /* private fields */ }
Expand description

A simple wrapper for std::process::Command

Spawn behavior

Unix

The spawned child process will get its own process group id, and it’s going to foreground (by making stdin belong’s to child’s process group).

On drop, the calling process’s group will become the foreground process group once again.

Windows

It does nothing special on windows system, spawn is the same as std::process::Command::spawn

Implementations

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.