Struct ssvm_process_interface::Command [−][src]
pub struct Command { pub name: String, pub args_list: Vec<String>, pub envp_map: HashMap<String, String>, pub timeout_val: u32, pub stdin_str: Vec<u8>, }
Fields
name: String
The program name.
args_list: Vec<String>
The argument list.
envp_map: HashMap<String, String>
The environment map.
timeout_val: u32
The timeout value (milliseconds).
stdin_str: Vec<u8>
Buffered stdin.
Implementations
impl Command
[src]
impl Command
[src]pub fn new<S: AsRef<str>>(prog: S) -> Command
[src]
pub fn arg<S: AsRef<str>>(&mut self, arg: S) -> &mut Command
[src]
pub fn args<I, S>(&mut self, args: I) -> &mut Command where
I: IntoIterator<Item = S>,
S: AsRef<str>,
[src]
I: IntoIterator<Item = S>,
S: AsRef<str>,
pub fn args_clear(&mut self) -> &mut Command
[src]
pub fn env<K, V>(&mut self, key: K, val: V) -> &mut Command where
K: AsRef<str>,
V: AsRef<str>,
[src]
K: AsRef<str>,
V: AsRef<str>,
pub fn envs<I, K, V>(&mut self, vars: I) -> &mut Command where
I: IntoIterator<Item = (K, V)>,
K: AsRef<str>,
V: AsRef<str>,
[src]
I: IntoIterator<Item = (K, V)>,
K: AsRef<str>,
V: AsRef<str>,