pub enum DescriptorType {
UserDescription(String),
ServerConfiguration {
broadcast: bool,
},
CharacteristicPresentation {
format: u8,
exponent: i8,
unit: u16,
name_space: u8,
description: u16,
},
Other {
uuid: Uuid,
},
}
Expand description
The different types of well-known Descriptors are defined here and should be
automatically read during service characteristic discovery by Stack
Implementations and included. Other Descriptor attribute values can be read
using [PeerService::read_descriptor
].
Characteristic Extended Properties are included in the CharacteristicProperties of the Characteristic. This is a subset of the descriptors defined in the Core Specification (v5.4, Vol 3 Part G Sec 3.3.3). Missing DescriptorTypes are handled internally and are added automatically, and are omitted from descriptor APIs.
Variants§
Trait Implementations§
Source§impl Clone for DescriptorType
impl Clone for DescriptorType
Source§fn clone(&self) -> DescriptorType
fn clone(&self) -> DescriptorType
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for DescriptorType
impl Debug for DescriptorType
Source§impl From<&DescriptorType> for Uuid
impl From<&DescriptorType> for Uuid
Source§fn from(value: &DescriptorType) -> Self
fn from(value: &DescriptorType) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for DescriptorType
impl RefUnwindSafe for DescriptorType
impl Send for DescriptorType
impl Sync for DescriptorType
impl Unpin for DescriptorType
impl UnwindSafe for DescriptorType
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