Type Alias s2n_quic::provider::tls::default::ffi::s2n_error_type::Type

source ·
pub type Type = u32;
Expand description

Used to help applications determine why an s2n-tls function failed.

This enum is optimized for use in C switch statements. Each value in the enum represents an error “category”.

s2n-tls organizes errors into different “types” to allow applications to handle error values without catching all possibilities. Applications using non-blocking I/O should check the error type to determine if the I/O operation failed because it would block or for some other error. To retrieve the type for a given error use s2n_error_get_type(). Applications should perform any error handling logic using these high level types.

See the Error Handling section for how the errors should be interpreted.