Function commandext::to_res [] [src]

pub fn to_res() -> fn(_: &mut Command) -> Result<i32, i32>

Generate a closure that returns a Result with the exit code of the process.

Return Values

  • Ok(0) - success
  • Err(x) - failure