result

Function result 

Source
pub fn result<T>(res: i32, output: T, error: Error) -> Result<T>