[][src]Trait mmrbi::CommandExt

pub trait CommandExt {
    fn status0(&mut self) -> Result<()>;
fn output0(&mut self) -> Result<Output>;
fn stdout0(&mut self) -> Result<String>;
fn stdout0_no_stderr(&mut self) -> Result<String>; }

Utility methods for std::process::Command

Required methods

fn status0(&mut self) -> Result<()>

Command::status, but returns an error if the process didn't have a zero exit code

fn output0(&mut self) -> Result<Output>

Command::output, but returns an error if the process didn't have a zero exit code

fn stdout0(&mut self) -> Result<String>

Command::output, but:

  • Returns an error if the process didn't have a zero exit code
  • Returns an error if stdout wasn't valid unicode
  • Returns only stdout
  • Stderr is inherited instead of redirected

fn stdout0_no_stderr(&mut self) -> Result<String>

Command::output, but:

  • Returns an error if the process didn't have a zero exit code
  • Returns an error if stdout wasn't valid unicode
  • Returns only stdout
  • Stderr is nulled instead of redirected
Loading content...

Implementations on Foreign Types

impl CommandExt for Command[src]

Loading content...

Implementors

impl CommandExt for mmrbi::Command[src]

Loading content...