pub unsafe extern "C" fn s2n_error_get_type(error: i32) -> i32
Expand description
Gets the category of error from an error.
s2n-tls organizes errors into different “types” to allow applications to do logic on error values without catching all possibilities. Applications using non-blocking I/O should check error type to determine if the I/O operation failed because it would block or for some other error.
@param error The error from s2n. Usually this is s2n_errno
.
@returns An s2n_error_type