Struct ::process::Command

A builder for a child command to execute

Methods

fn new(command: String) -> Command

Construct a new command.

fn spawn(self) -> Result

Spawn the command.

fn arg(self, arg: String) -> Tuple

Add an argument.

fn args(self, args: Vec) -> Tuple

Add arguments.

fn arg0(self, arg: String) -> Tuple

Set the first process argument, argv[0], to something other than the default executable path. (Unix only)

fn stdin(self, stdio: Stdio) -> Tuple

Sets configuration for the child process’s standard input (stdin) handle.

fn stdout(self, stdio: Stdio) -> Tuple

Sets configuration for the child process’s standard output (stdout) handle.

fn stderr(self, stdio: Stdio) -> Tuple

Sets configuration for the child process’s standard error (stderr) handle.

Protocols

protocol string_debug
println("{:?}", value)

Allows the value to be debug printed.