Trait ToProcResult

Source
pub trait ToProcResult<T> {
    // Required method
    fn to_proc_result(&self) -> ProcResult<T>;
}
Expand description

A trait that converts a result of running a process into a ProcResult.

Required Methods§

Source

fn to_proc_result(&self) -> ProcResult<T>

Converts the current result of running a process to a ProcResult.

§Errors

If the result was a non-zero exit code, returns Error.

Implementations on Foreign Types§

Source§

impl ToProcResult<()> for ExitStatus

Implementors§