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

pub struct ProcessBuilder {
    // some fields omitted
}

Methods

impl ProcessBuilder
[src]

fn arg<T: AsRef<OsStr>>(&mut self, arg: T) -> &mut ProcessBuilder

fn args<T: AsRef<OsStr>>(&mut self, arguments: &[T]) -> &mut ProcessBuilder

fn cwd<T: AsRef<OsStr>>(&mut self, path: T) -> &mut ProcessBuilder

fn env<T: AsRef<OsStr>>(&mut self, key: &str, val: T) -> &mut ProcessBuilder

fn env_remove(&mut self, key: &str) -> &mut ProcessBuilder

fn get_args(&self) -> &[OsString]

fn get_cwd(&self) -> Option<&Path>

fn get_env(&self, var: &str) -> Option<OsString>

fn get_envs(&self) -> &HashMap<StringOption<OsString>>

fn exec(&self) -> Result<()ProcessError>

fn exec_with_output(&self) -> Result<OutputProcessError>

fn build_command(&self) -> Command

Trait Implementations

impl Debug for ProcessBuilder
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl PartialEq for ProcessBuilder
[src]

fn eq(&self, __arg_0: &ProcessBuilder) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, __arg_0: &ProcessBuilder) -> bool

This method tests for !=.

impl Clone for ProcessBuilder
[src]

fn clone(&self) -> ProcessBuilder

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl Display for ProcessBuilder
[src]

fn fmt(&self, f: &mut Formatter) -> Result

Formats the value using the given formatter.