#[repr(C)]
pub union ble_gatt_access_ctxt__bindgen_ty_1 {
pub chr: *const ble_gatt_chr_def,
pub dsc: *const ble_gatt_dsc_def,
}
Expand description
The GATT operation being performed dictates which field in this union is valid. If a characteristic is being accessed, the chr field is valid. Otherwise a descriptor is being accessed, in which case the dsc field is valid.
Fields§
§chr: *const ble_gatt_chr_def
The characteristic definition corresponding to the characteristic being accessed. This is what the app registered at startup.
dsc: *const ble_gatt_dsc_def
The descriptor definition corresponding to the descriptor being accessed. This is what the app registered at startup.
Trait Implementations§
Source§impl Clone for ble_gatt_access_ctxt__bindgen_ty_1
impl Clone for ble_gatt_access_ctxt__bindgen_ty_1
Source§fn clone(&self) -> ble_gatt_access_ctxt__bindgen_ty_1
fn clone(&self) -> ble_gatt_access_ctxt__bindgen_ty_1
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreimpl Copy for ble_gatt_access_ctxt__bindgen_ty_1
Auto Trait Implementations§
impl Freeze for ble_gatt_access_ctxt__bindgen_ty_1
impl RefUnwindSafe for ble_gatt_access_ctxt__bindgen_ty_1
impl !Send for ble_gatt_access_ctxt__bindgen_ty_1
impl !Sync for ble_gatt_access_ctxt__bindgen_ty_1
impl Unpin for ble_gatt_access_ctxt__bindgen_ty_1
impl UnwindSafe for ble_gatt_access_ctxt__bindgen_ty_1
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 4 bytes