Struct riot_sys::ble_gatt_svc_def
source · #[repr(C)]pub struct ble_gatt_svc_def {
pub type_: u8,
pub uuid: *const ble_uuid_t,
pub includes: *mut *const ble_gatt_svc_def,
pub characteristics: *const ble_gatt_chr_def,
}
Fields§
§type_: u8
One of the following: o BLE_GATT_SVC_TYPE_PRIMARY - primary service o BLE_GATT_SVC_TYPE_SECONDARY - secondary service o 0 - No more services in this array.
uuid: *const ble_uuid_t
Pointer to service UUID; use BLE_UUIDxx_DECLARE macros to declare proper UUID; NULL if there are no more characteristics in the service.
includes: *mut *const ble_gatt_svc_def
Array of pointers to other service definitions. These services are reported as “included services” during service discovery. Terminate the array with NULL.
characteristics: *const ble_gatt_chr_def
Array of characteristic definitions corresponding to characteristics belonging to this service.
Trait Implementations§
source§impl Clone for ble_gatt_svc_def
impl Clone for ble_gatt_svc_def
source§fn clone(&self) -> ble_gatt_svc_def
fn clone(&self) -> ble_gatt_svc_def
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 moresource§impl Debug for ble_gatt_svc_def
impl Debug for ble_gatt_svc_def
source§impl Default for ble_gatt_svc_def
impl Default for ble_gatt_svc_def
impl Copy for ble_gatt_svc_def
Auto Trait Implementations§
impl RefUnwindSafe for ble_gatt_svc_def
impl !Send for ble_gatt_svc_def
impl !Sync for ble_gatt_svc_def
impl Unpin for ble_gatt_svc_def
impl UnwindSafe for ble_gatt_svc_def
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