[][src]Struct mmrbi::Command

pub struct Command { /* fields omitted */ }

A Cloneable, Displayable clone of std::process::Command

Implementations

impl Command[src]

pub fn new(program: impl AsRef<OsStr>) -> Self[src]

pub fn arg(&mut self, arg: impl AsRef<OsStr>) -> &mut Self[src]

pub fn args<I: IntoIterator<Item = S>, S: AsRef<OsStr>>(
    &mut self,
    args: I
) -> &mut Self
[src]

pub fn env(
    &mut self,
    key: impl AsRef<OsStr>,
    val: impl AsRef<OsStr>
) -> &mut Self
[src]

pub fn envs<I: IntoIterator<Item = (K, V)>, K: AsRef<OsStr>, V: AsRef<OsStr>>(
    &mut self,
    vars: I
) -> &mut Self
[src]

pub fn env_remove(&mut self, key: impl AsRef<OsStr>) -> &mut Self[src]

pub fn env_clear(&mut self) -> &mut Self[src]

pub fn current_dir(&mut self, dir: impl AsRef<Path>) -> &mut Self[src]

pub fn stdin(&mut self, f: impl Fn() -> Stdio + 'static) -> &mut Self[src]

pub fn stdout(&mut self, f: impl Fn() -> Stdio + 'static) -> &mut Self[src]

pub fn stderr(&mut self, f: impl Fn() -> Stdio + 'static) -> &mut Self[src]

pub fn to_command(&self) -> Command[src]

pub fn spawn(&self) -> Result<Child>[src]

pub fn output(&self) -> Result<Output>[src]

pub fn status(&self) -> Result<ExitStatus>[src]

Trait Implementations

impl Clone for Command[src]

impl CommandExt for Command[src]

impl Debug for Command[src]

impl Display for Command[src]

Auto Trait Implementations

impl !RefUnwindSafe for Command

impl !Send for Command

impl !Sync for Command

impl Unpin for Command

impl !UnwindSafe for Command

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.