#[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
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
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 Freeze for ble_gatt_svc_def
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
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)
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: 16 bytes