pub struct StdCommand { /* private fields */ }Implementations§
Source§impl StdCommand
impl StdCommand
pub fn new<S: AsRef<OsStr>>(program: S) -> Self
pub fn arg<S: AsRef<OsStr>>(&mut self, arg: S) -> &mut Self
pub fn args<I, S>(&mut self, args: I) -> &mut Self
pub fn env<K, V>(&mut self, key: K, val: V) -> &mut Self
pub fn envs<I, K, V>(&mut self, vars: I) -> &mut Self
pub fn current_dir<P: AsRef<Path>>(&mut self, dir: P) -> &mut Self
pub fn stdin<T: Into<Stdio>>(&mut self, stdin: T) -> &mut Self
pub fn stdout<T: Into<Stdio>>(&mut self, stdout: T) -> &mut Self
pub fn stderr<T: Into<Stdio>>(&mut self, stderr: T) -> &mut Self
pub fn into_inner(self) -> Command
pub fn child(self) -> Result<Child>
pub fn spawn(&mut self) -> Result<StdCommandProcess>
pub fn output(&mut self) -> Result<String>
pub fn status(&mut self) -> Result<ExitStatus>
pub fn execute_and_print(&mut self) -> Result<()>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for StdCommand
impl !RefUnwindSafe for StdCommand
impl Send for StdCommand
impl Sync for StdCommand
impl Unpin for StdCommand
impl !UnwindSafe for StdCommand
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more