Struct gaol::sandbox::Command [] [src]

pub struct Command {
    pub module_path: CString,
    pub args: Vec<CString>,
    pub env: HashMap<CString, CString>,
}

Fields

A path to the executable.

The arguments to pass.

The environment of the process.

Methods

impl Command
[src]

Constructs a new Command for launching the executable at path module_path with no arguments and no environment by default. Builder methods are provided to change these defaults and otherwise configure the process.

Constructs a new Command for launching the current executable.

Adds an argument to pass to the program.

Adds multiple arguments to pass to the program.

Inserts or updates an environment variable mapping.

Executes the command as a child process, which is returned.