zephyr::error

Function to_result

source
pub fn to_result(code: c_int) -> Result<c_int>
Expand description

Map a return result from Zephyr into an Result.

Negative return results being considered errors.