Struct cargo::util::process_builder::ProcessBuilder
[−]
[src]
pub struct ProcessBuilder { /* 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<String, Option<OsString>>
fn exec(&self) -> Result<(), ProcessError>
fn exec_replace(&self) -> Result<(), ProcessError>
fn exec_with_output(&self) -> Result<Output, ProcessError>
fn exec_with_streaming(
&self,
on_stdout_line: &mut FnMut(&str) -> CargoResult<()>,
on_stderr_line: &mut FnMut(&str) -> CargoResult<()>
) -> Result<Output, ProcessError>
&self,
on_stdout_line: &mut FnMut(&str) -> CargoResult<()>,
on_stderr_line: &mut FnMut(&str) -> CargoResult<()>
) -> Result<Output, ProcessError>
fn build_command(&self) -> Command
Trait Implementations
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 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 !=
.