#[repr(C)]pub struct bt_le_ext_adv_cb {
pub sent: Option<unsafe extern "C" fn(_: *mut bt_le_ext_adv, _: *mut bt_le_ext_adv_sent_info)>,
pub connected: Option<unsafe extern "C" fn(_: *mut bt_le_ext_adv, _: *mut bt_le_ext_adv_connected_info)>,
pub scanned: Option<unsafe extern "C" fn(_: *mut bt_le_ext_adv, _: *mut bt_le_ext_adv_scanned_info)>,
}
Fields§
§sent: Option<unsafe extern "C" fn(_: *mut bt_le_ext_adv, _: *mut bt_le_ext_adv_sent_info)>
@brief The advertising set has finished sending adv data.
This callback notifies the application that the advertising set has finished sending advertising data. The advertising set can either have been stopped by a timeout or because the specified number of advertising events has been reached.
@param adv The advertising set object. @param info Information about the sent event.
connected: Option<unsafe extern "C" fn(_: *mut bt_le_ext_adv, _: *mut bt_le_ext_adv_connected_info)>
@brief The advertising set has accepted a new connection.
This callback notifies the application that the advertising set has accepted a new connection.
@param adv The advertising set object. @param info Information about the connected event.
scanned: Option<unsafe extern "C" fn(_: *mut bt_le_ext_adv, _: *mut bt_le_ext_adv_scanned_info)>
@brief The advertising set has sent scan response data.
This callback notifies the application that the advertising set has has received a Scan Request packet, and has sent a Scan Response packet.
@param adv The advertising set object. @param addr Information about the scanned event.