Struct cargo::util::process_builder::ProcessBuilder[][src]

pub struct ProcessBuilder { /* fields omitted */ }

A builder object for an external process, similar to std::process::Command.

Methods

impl ProcessBuilder
[src]

(chainable) Set the executable for the process.

(chainable) Add an arg to the args list.

(chainable) Add many args to the args list.

(chainable) Replace args with new args list

(chainable) Set the current working directory of the process

(chainable) Set an environment variable for the process.

(chainable) Unset an environment variable for the process.

Get the executable name.

Important traits for &'a [u8]

Get the program arguments

Get the current working directory for the process

Get an environment variable as the process will see it (will inherit from environment unless explicitally unset).

Get all environment variables explicitly set or unset for the process (not inherited vars).

Important traits for &'a mut R

Set the make jobserver. See the jobserver crate for more information.

Run the process, waiting for completion, and mapping non-success exit codes to an error.

On unix, executes the process using the unix syscall execvp, which will block this process, and will only return if there is an error. On windows this is a synonym for exec.

Execute the process, returning the stdio output, or an error if non-zero exit status.

Execute a command, passing each line of stdout and stderr to the supplied callbacks, which can mutate the string data.

If any invocations of these function return an error, it will be propagated.

Optionally, output can be passed to errors using print_output

Converts ProcessBuilder into a std::process::Command, and handles the jobserver if present.

Trait Implementations

impl Clone for ProcessBuilder
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for ProcessBuilder
[src]

Formats the value using the given formatter. Read more

impl Display for ProcessBuilder
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations