to_res

Function to_res 

Source
pub fn to_res() -> fn(cmd: &mut Command) -> Result<i32, i32>
Expand description

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

ยงReturn Values

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