Struct ubend::Command [−][src]
pub struct Command { pub stdin: PipeSetup, pub stdout: PipeSetup, pub stderr: PipeSetup, pub last: Target, pub argv: Vec<String>, pub envp: HashMap<String, String>, }
Configuration of a child process.
Fields
stdin: PipeSetup
stdout: PipeSetup
stderr: PipeSetup
last: Target
argv: Vec<String>
envp: HashMap<String, String>
Methods
impl Command
[src]
impl Command
pub fn empty() -> Self
[src]
pub fn empty() -> Self
pub fn new(prog: &str) -> Self
[src]
pub fn new(prog: &str) -> Self
pub fn first(args: &[&str]) -> Self
[src]
pub fn first(args: &[&str]) -> Self
pub fn last(args: &[&str]) -> Self
[src]
pub fn last(args: &[&str]) -> Self
pub fn pass_through(args: &[&str]) -> Self
[src]
pub fn pass_through(args: &[&str]) -> Self
pub fn pass_stdin(fd: c_int, args: &[&str]) -> Self
[src]
pub fn pass_stdin(fd: c_int, args: &[&str]) -> Self
pub fn pass_stdout(fd: c_int, args: &[&str]) -> Self
[src]
pub fn pass_stdout(fd: c_int, args: &[&str]) -> Self
pub fn pass_stderr(fd: c_int, args: &[&str]) -> Self
[src]
pub fn pass_stderr(fd: c_int, args: &[&str]) -> Self
pub fn has_output(&self) -> bool
[src]
pub fn has_output(&self) -> bool
pub fn env(&mut self, key: &str, value: &str)
[src]
pub fn env(&mut self, key: &str, value: &str)
pub fn arg(&mut self, arg: &str)
[src]
pub fn arg(&mut self, arg: &str)
pub fn stdin(&mut self, setup: PipeSetup)
[src]
pub fn stdin(&mut self, setup: PipeSetup)
pub fn stdout(&mut self, setup: PipeSetup)
[src]
pub fn stdout(&mut self, setup: PipeSetup)
pub fn stderr(&mut self, setup: PipeSetup)
[src]
pub fn stderr(&mut self, setup: PipeSetup)
pub fn open(self) -> Result<Child>
[src]
pub fn open(self) -> Result<Child>