Skip to main content

CommandExt

Trait CommandExt 

Source
pub trait CommandExt {
    // Required method
    fn output_checked(&mut self) -> Result<Output>;

    // Provided method
    fn stdout_str(&mut self) -> Result<String> { ... }
}
Expand description

Helper for properly checking Command results.

Required Methods§

Provided Methods§

Source

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

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl CommandExt for Command

Implementors§