Struct riot_sys::ble_gatt_svc_def[][src]

#[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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

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

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.