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 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
sourceimpl Debug for Characteristic
impl Debug for Characteristic
sourceimpl Default for Characteristic
impl Default for Characteristic
sourcefn default() -> Characteristic
fn default() -> Characteristic
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl !RefUnwindSafe for Characteristic
impl Send for Characteristic
impl Sync for Characteristic
impl Unpin for Characteristic
impl !UnwindSafe for Characteristic
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more