pub type ble_l2cap_event_fn = Option<unsafe extern "C" fn(event: *mut ble_l2cap_event, arg: *mut c_void) -> c_int>;Expand description
@brief Function pointer type for handling L2CAP events.
@param event A pointer to the L2CAP event structure. @param arg A pointer to additional arguments passed to the callback function.
@return Integer value representing the status or result of the event handling.
Aliased Type§
enum ble_l2cap_event_fn {
None,
Some(unsafe extern "C" fn(_: *mut ble_l2cap_event, _: *mut c_void) -> i32),
}Variants§
None
No value.
Some(unsafe extern "C" fn(_: *mut ble_l2cap_event, _: *mut c_void) -> i32)
Some value of type T.