pub fn to_result(code: c_int) -> Result<c_int>
Map a return result from Zephyr into an Result.
Negative return results being considered errors.