Type Alias s2n_tls_sys::s2n_recv_fn

source ·
pub type s2n_recv_fn = Option<unsafe extern "C" fn(io_context: *mut c_void, buf: *mut u8, len: u32) -> c_int>;
Expand description

Function pointer for a user provided send callback.

Aliased Type§

enum s2n_recv_fn {
    None,
    Some(unsafe extern "C" fn(_: *mut c_void, _: *mut u8, _: u32) -> i32),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(_: *mut c_void, _: *mut u8, _: u32) -> i32)

Some value of type T.