[][src]Struct apache_nimble_sys::ble_gatt_chr_def

#[repr(C)]pub struct ble_gatt_chr_def {
    pub uuid: *const ble_uuid_t,
    pub access_cb: ble_gatt_access_fn,
    pub arg: *mut c_void,
    pub descriptors: *mut ble_gatt_dsc_def,
    pub flags: ble_gatt_chr_flags,
    pub min_key_size: u8,
    pub val_handle: *mut u16,
}

Fields

uuid: *const ble_uuid_t

Pointer to characteristic UUID; use BLE_UUIDxx_DECLARE macros to declare proper UUID; NULL if there are no more characteristics in the service.

access_cb: ble_gatt_access_fn

Callback that gets executed when this characteristic is read or written.

arg: *mut c_void

Optional argument for callback.

descriptors: *mut ble_gatt_dsc_def

Array of this characteristic's descriptors. NULL if no descriptors. Do not include CCCD; it gets added automatically if this characteristic's notify or indicate flag is set.

flags: ble_gatt_chr_flags

Specifies the set of permitted operations for this characteristic.

min_key_size: u8

Specifies minimum required key size to access this characteristic.

val_handle: *mut u16

At registration time, this is filled in with the characteristic's value attribute handle.

Trait Implementations

impl Clone for ble_gatt_chr_def[src]

impl Copy for ble_gatt_chr_def[src]

impl Debug for ble_gatt_chr_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.