[][src]Struct apache_nimble_sys::ble_gatt_svc_def

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

impl Clone for ble_gatt_svc_def[src]

impl Copy for ble_gatt_svc_def[src]

impl Debug for ble_gatt_svc_def[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.