pub struct Characteristic {
    pub uuid: Uuid,
    pub handle: Option<NonZeroU16>,
    pub broadcast: bool,
    pub writable_auxiliaries: bool,
    pub authorize: bool,
    pub descriptors: Vec<Descriptor>,
    pub read: Option<CharacteristicRead>,
    pub write: Option<CharacteristicWrite>,
    pub notify: Option<CharacteristicNotify>,
    pub control_handle: CharacteristicControlHandle,
    /* private fields */
}
Available on crate feature bluetoothd only.
Expand description

Definition of local GATT characteristic exposed over Bluetooth.

Fields

uuid: Uuid

128-bit characteristic UUID.

handle: Option<NonZeroU16>

Characteristic handle.

Set to None to auto allocate an available handle.

broadcast: bool

If set, permits broadcasts of the Characteristic Value using Server Characteristic Configuration Descriptor.

writable_auxiliaries: bool

If set a client can write to the Characteristic User Description Descriptor.

authorize: bool

Authorize flag.

descriptors: Vec<Descriptor>

Characteristic descriptors.

read: Option<CharacteristicRead>

Read value of characteristic.

write: Option<CharacteristicWrite>

Write value of characteristic.

notify: Option<CharacteristicNotify>

Notify client of characteristic value change.

control_handle: CharacteristicControlHandle

Control handle for characteristic once it has been registered.

Trait Implementations

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.