Struct bluer::gatt::local::Descriptor
source · pub struct Descriptor {
pub uuid: Uuid,
pub handle: Option<NonZeroU16>,
pub authorize: bool,
pub read: Option<DescriptorRead>,
pub write: Option<DescriptorWrite>,
pub control_handle: DescriptorControlHandle,
/* private fields */
}
Available on crate feature
bluetoothd
only.Expand description
Definition of local GATT characteristic descriptor exposed over Bluetooth.
Fields§
§uuid: Uuid
128-bit descriptor UUID.
handle: Option<NonZeroU16>
Characteristic descriptor handle.
Set to None to auto allocate an available handle.
Authorize flag.
read: Option<DescriptorRead>
Read value of characteristic descriptor.
write: Option<DescriptorWrite>
Write value of characteristic descriptor.
control_handle: DescriptorControlHandle
Control handle for characteristic descriptor once it has been registered.
Trait Implementations§
source§impl Debug for Descriptor
impl Debug for Descriptor
source§impl Default for Descriptor
impl Default for Descriptor
source§fn default() -> Descriptor
fn default() -> Descriptor
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for Descriptor
impl !RefUnwindSafe for Descriptor
impl Send for Descriptor
impl Sync for Descriptor
impl Unpin for Descriptor
impl !UnwindSafe for Descriptor
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more