Struct cargo::ops::CommandPrototype [] [src]

pub struct CommandPrototype {
    // some fields omitted
}

Prototype for a command that must be executed.

Methods

impl CommandPrototype
[src]

fn new(ty: CommandType, config: &Config) -> CargoResult<CommandPrototype>

fn get_type(&self) -> &CommandType

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

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

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

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

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 into_process_builder(self) -> ProcessBuilder

Trait Implementations

impl Clone for CommandPrototype
[src]

fn clone(&self) -> CommandPrototype

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 CommandPrototype
[src]

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

Formats the value using the given formatter.