Type Alias esp_idf_sys::protocomm_req_handler_t

source ·
pub type protocomm_req_handler_t = Option<unsafe extern "C" fn(session_id: u32, inbuf: *const u8, inlen: isize, outbuf: *mut *mut u8, outlen: *mut isize, priv_data: *mut c_void) -> esp_err_t>;
Expand description

@brief Function prototype for protocomm endpoint handler

Aliased Type§

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

Variants§

§1.0.0

None

No value.

§1.0.0

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

Some value of type T.