Union esp_idf_svc::sys::esp_ble_gatts_cb_param_t

source ·
#[repr(C)]
pub union esp_ble_gatts_cb_param_t {
Show 23 fields pub reg: esp_ble_gatts_cb_param_t_gatts_reg_evt_param, pub read: esp_ble_gatts_cb_param_t_gatts_read_evt_param, pub write: esp_ble_gatts_cb_param_t_gatts_write_evt_param, pub exec_write: esp_ble_gatts_cb_param_t_gatts_exec_write_evt_param, pub mtu: esp_ble_gatts_cb_param_t_gatts_mtu_evt_param, pub conf: esp_ble_gatts_cb_param_t_gatts_conf_evt_param, pub create: esp_ble_gatts_cb_param_t_gatts_create_evt_param, pub add_incl_srvc: esp_ble_gatts_cb_param_t_gatts_add_incl_srvc_evt_param, pub add_char: esp_ble_gatts_cb_param_t_gatts_add_char_evt_param, pub add_char_descr: esp_ble_gatts_cb_param_t_gatts_add_char_descr_evt_param, pub del: esp_ble_gatts_cb_param_t_gatts_delete_evt_param, pub start: esp_ble_gatts_cb_param_t_gatts_start_evt_param, pub stop: esp_ble_gatts_cb_param_t_gatts_stop_evt_param, pub connect: esp_ble_gatts_cb_param_t_gatts_connect_evt_param, pub disconnect: esp_ble_gatts_cb_param_t_gatts_disconnect_evt_param, pub open: esp_ble_gatts_cb_param_t_gatts_open_evt_param, pub cancel_open: esp_ble_gatts_cb_param_t_gatts_cancel_open_evt_param, pub close: esp_ble_gatts_cb_param_t_gatts_close_evt_param, pub congest: esp_ble_gatts_cb_param_t_gatts_congest_evt_param, pub rsp: esp_ble_gatts_cb_param_t_gatts_rsp_evt_param, pub add_attr_tab: esp_ble_gatts_cb_param_t_gatts_add_attr_tab_evt_param, pub set_attr_val: esp_ble_gatts_cb_param_t_gatts_set_attr_val_evt_param, pub service_change: esp_ble_gatts_cb_param_t_gatts_send_service_change_evt_param,
}
Expand description

@brief Gatt server callback parameters union

Fields§

§reg: esp_ble_gatts_cb_param_t_gatts_reg_evt_param

< Gatt server callback param of ESP_GATTS_REG_EVT

§read: esp_ble_gatts_cb_param_t_gatts_read_evt_param

< Gatt server callback param of ESP_GATTS_READ_EVT

§write: esp_ble_gatts_cb_param_t_gatts_write_evt_param

< Gatt server callback param of ESP_GATTS_WRITE_EVT

§exec_write: esp_ble_gatts_cb_param_t_gatts_exec_write_evt_param

< Gatt server callback param of ESP_GATTS_EXEC_WRITE_EVT

§mtu: esp_ble_gatts_cb_param_t_gatts_mtu_evt_param

< Gatt server callback param of ESP_GATTS_MTU_EVT

§conf: esp_ble_gatts_cb_param_t_gatts_conf_evt_param

< Gatt server callback param of ESP_GATTS_CONF_EVT (confirm)

§create: esp_ble_gatts_cb_param_t_gatts_create_evt_param

< Gatt server callback param of ESP_GATTS_CREATE_EVT

§add_incl_srvc: esp_ble_gatts_cb_param_t_gatts_add_incl_srvc_evt_param

< Gatt server callback param of ESP_GATTS_ADD_INCL_SRVC_EVT

§add_char: esp_ble_gatts_cb_param_t_gatts_add_char_evt_param

< Gatt server callback param of ESP_GATTS_ADD_CHAR_EVT

§add_char_descr: esp_ble_gatts_cb_param_t_gatts_add_char_descr_evt_param

< Gatt server callback param of ESP_GATTS_ADD_CHAR_DESCR_EVT

§del: esp_ble_gatts_cb_param_t_gatts_delete_evt_param

< Gatt server callback param of ESP_GATTS_DELETE_EVT

§start: esp_ble_gatts_cb_param_t_gatts_start_evt_param

< Gatt server callback param of ESP_GATTS_START_EVT

§stop: esp_ble_gatts_cb_param_t_gatts_stop_evt_param

< Gatt server callback param of ESP_GATTS_STOP_EVT

§connect: esp_ble_gatts_cb_param_t_gatts_connect_evt_param

< Gatt server callback param of ESP_GATTS_CONNECT_EVT

§disconnect: esp_ble_gatts_cb_param_t_gatts_disconnect_evt_param

< Gatt server callback param of ESP_GATTS_DISCONNECT_EVT

§open: esp_ble_gatts_cb_param_t_gatts_open_evt_param

< Gatt server callback param of ESP_GATTS_OPEN_EVT

§cancel_open: esp_ble_gatts_cb_param_t_gatts_cancel_open_evt_param

< Gatt server callback param of ESP_GATTS_CANCEL_OPEN_EVT

§close: esp_ble_gatts_cb_param_t_gatts_close_evt_param

< Gatt server callback param of ESP_GATTS_CLOSE_EVT

§congest: esp_ble_gatts_cb_param_t_gatts_congest_evt_param

< Gatt server callback param of ESP_GATTS_CONGEST_EVT

§rsp: esp_ble_gatts_cb_param_t_gatts_rsp_evt_param

< Gatt server callback param of ESP_GATTS_RESPONSE_EVT

§add_attr_tab: esp_ble_gatts_cb_param_t_gatts_add_attr_tab_evt_param

< Gatt server callback param of ESP_GATTS_CREAT_ATTR_TAB_EVT

§set_attr_val: esp_ble_gatts_cb_param_t_gatts_set_attr_val_evt_param

< Gatt server callback param of ESP_GATTS_SET_ATTR_VAL_EVT

§service_change: esp_ble_gatts_cb_param_t_gatts_send_service_change_evt_param

< Gatt server callback param of ESP_GATTS_SEND_SERVICE_CHANGE_EVT

Trait Implementations§

source§

impl Clone for esp_ble_gatts_cb_param_t

source§

fn clone(&self) -> esp_ble_gatts_cb_param_t

Returns a copy of the value. Read more
1.0.0§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Default for esp_ble_gatts_cb_param_t

source§

fn default() -> esp_ble_gatts_cb_param_t

Returns the “default value” for a type. Read more
source§

impl Copy for esp_ble_gatts_cb_param_t

Auto Trait Implementations§

§

impl Freeze for esp_ble_gatts_cb_param_t

§

impl RefUnwindSafe for esp_ble_gatts_cb_param_t

§

impl !Send for esp_ble_gatts_cb_param_t

§

impl !Sync for esp_ble_gatts_cb_param_t

§

impl Unpin for esp_ble_gatts_cb_param_t

§

impl UnwindSafe for esp_ble_gatts_cb_param_t

Blanket Implementations§

§

impl<T> Any for T
where T: 'static + ?Sized,

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> Borrow<T> for T
where T: ?Sized,

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

impl<T> BorrowMut<T> for T
where T: ?Sized,

§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> CloneToUninit for T
where T: Clone,

§

default unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<T> CloneToUninit for T
where T: Copy,

§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T, U> Into<U> for T
where U: From<T>,

§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.