Function chatora_errno::describe_errno[][src]

pub fn describe_errno(errno: i32) -> Result<String>

Gets a detailed String description for the given errno number.

Panics

This function panics if the bytes passed to libc::c_char buffer are not valid UTF-8.

Examples

let errno = get_errno();
let err_string: String = describe_errno(errno).unwrap();
assert_eq!(err_string, "Success");