Trait OutputLike

Source
pub trait OutputLike {
    // Required methods
    fn status(&self) -> ExitStatus;
    fn stdout(&self) -> Cow<'_, str>;
    fn stderr(&self) -> Cow<'_, str>;
}
Expand description

A command output type.

Required Methods§

Source

fn status(&self) -> ExitStatus

The command’s exit status.

Source

fn stdout(&self) -> Cow<'_, str>

The command’s stdout, decoded to UTF-8 on a best-effort basis.

Source

fn stderr(&self) -> Cow<'_, str>

The command’s stderr, decoded to UTF-8 on a best-effort basis.

Implementations on Foreign Types§

Source§

impl OutputLike for ExitStatus

A trivial implementation with empty output.

Source§

fn status(&self) -> ExitStatus

Source§

fn stdout(&self) -> Cow<'_, str>

Source§

fn stderr(&self) -> Cow<'_, str>

Source§

impl OutputLike for Output

Source§

fn status(&self) -> ExitStatus

Source§

fn stdout(&self) -> Cow<'_, str>

Source§

fn stderr(&self) -> Cow<'_, str>

Source§

impl OutputLike for Utf8Output

Source§

fn status(&self) -> ExitStatus

Source§

fn stdout(&self) -> Cow<'_, str>

Source§

fn stderr(&self) -> Cow<'_, str>

Implementors§