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§
Sourcefn to_proc_result(&self) -> ProcResult<T>
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
.