Struct mmrbi::Command [−][src]
A Cloneable, Displayable clone of std::process::Command
Implementations
impl Command
[src]
pub fn new(program: impl AsRef<OsStr>) -> Self
[src]
pub fn parse(command: impl AsRef<str>) -> Result<Self, String>
[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]
&mut self,
args: I
) -> &mut Self
pub fn env(
&mut self,
key: impl AsRef<OsStr>,
val: impl AsRef<OsStr>
) -> &mut Self
[src]
&mut self,
key: impl AsRef<OsStr>,
val: impl AsRef<OsStr>
) -> &mut Self
pub fn envs<I: IntoIterator<Item = (K, V)>, K: AsRef<OsStr>, V: AsRef<OsStr>>(
&mut self,
vars: I
) -> &mut Self
[src]
&mut self,
vars: I
) -> &mut Self
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]
fn status0(&mut self) -> Result<()>
[src]
fn output0(&mut self) -> Result<Output>
[src]
fn stdout0(&mut self) -> Result<String>
[src]
fn stdout0_no_stderr(&mut self) -> Result<String>
[src]
fn io(
&mut self,
on_out: impl Fn(&str) + Send + Sync + 'static,
on_err: impl Fn(&str) + Send + Sync + 'static
) -> Result<ExitStatus>
[src]
&mut self,
on_out: impl Fn(&str) + Send + Sync + 'static,
on_err: impl Fn(&str) + Send + Sync + 'static
) -> Result<ExitStatus>
fn io0(
&mut self,
on_out: impl Fn(&str) + Send + Sync + 'static,
on_err: impl Fn(&str) + Send + Sync + 'static
) -> Result<()>
[src]
&mut self,
on_out: impl Fn(&str) + Send + Sync + 'static,
on_err: impl Fn(&str) + Send + Sync + 'static
) -> Result<()>
impl Debug for Command
[src]
impl Display for Command
[src]
Auto Trait Implementations
impl !RefUnwindSafe for Command
[src]
impl !Send for Command
[src]
impl !Sync for Command
[src]
impl Unpin for Command
[src]
impl !UnwindSafe for Command
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,