#[non_exhaustive]#[repr(u16)]pub enum Descriptor {
Show 16 variants
CharacteristicExtendedProperties = 10_496,
CharacteristicUserDescription = 10_497,
ClientCharacteristicConfiguration = 10_498,
ServerCharacteristicConfiguration = 10_499,
CharacteristicPresentationFormat = 10_500,
CharacteristicAggregateFormat = 10_501,
ValidRange = 10_502,
ExternalReportReference = 10_503,
ReportReference = 10_504,
NumberOfDigitals = 10_505,
ValueTriggerSetting = 10_506,
EnvironmentalSensingConfiguration = 10_507,
EnvironmentalSensingMeasurement = 10_508,
EnvironmentalSensingTriggerSetting = 10_509,
TimeTriggerSetting = 10_510,
CompleteBredrTransportBlockData = 10_511,
}Expand description
Descriptors ([Assigned Numbers] Section 3.7).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
CharacteristicExtendedProperties = 10_496
CharacteristicUserDescription = 10_497
ClientCharacteristicConfiguration = 10_498
ServerCharacteristicConfiguration = 10_499
CharacteristicPresentationFormat = 10_500
CharacteristicAggregateFormat = 10_501
ValidRange = 10_502
ExternalReportReference = 10_503
ReportReference = 10_504
NumberOfDigitals = 10_505
ValueTriggerSetting = 10_506
EnvironmentalSensingConfiguration = 10_507
EnvironmentalSensingMeasurement = 10_508
EnvironmentalSensingTriggerSetting = 10_509
TimeTriggerSetting = 10_510
CompleteBredrTransportBlockData = 10_511
Implementations§
Source§impl Descriptor
impl Descriptor
pub const CHARACTERISTIC_EXTENDED_PROPERTIES: Uuid16
pub const CHARACTERISTIC_USER_DESCRIPTION: Uuid16
pub const CLIENT_CHARACTERISTIC_CONFIGURATION: Uuid16
pub const SERVER_CHARACTERISTIC_CONFIGURATION: Uuid16
pub const CHARACTERISTIC_PRESENTATION_FORMAT: Uuid16
pub const CHARACTERISTIC_AGGREGATE_FORMAT: Uuid16
pub const VALID_RANGE: Uuid16
pub const EXTERNAL_REPORT_REFERENCE: Uuid16
pub const REPORT_REFERENCE: Uuid16
pub const NUMBER_OF_DIGITALS: Uuid16
pub const VALUE_TRIGGER_SETTING: Uuid16
pub const ENVIRONMENTAL_SENSING_CONFIGURATION: Uuid16
pub const ENVIRONMENTAL_SENSING_MEASUREMENT: Uuid16
pub const ENVIRONMENTAL_SENSING_TRIGGER_SETTING: Uuid16
pub const TIME_TRIGGER_SETTING: Uuid16
pub const COMPLETE_BREDR_TRANSPORT_BLOCK_DATA: Uuid16
Trait Implementations§
Source§impl Clone for Descriptor
impl Clone for Descriptor
Source§fn clone(&self) -> Descriptor
fn clone(&self) -> Descriptor
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 Descriptor
impl Debug for Descriptor
Source§impl Display for Descriptor
impl Display for Descriptor
Source§impl From<Descriptor> for Uuid
impl From<Descriptor> for Uuid
Source§fn from(v: Descriptor) -> Self
fn from(v: Descriptor) -> Self
Converts to this type from the input type.
Source§impl From<Descriptor> for Uuid16
impl From<Descriptor> for Uuid16
Source§fn from(v: Descriptor) -> Self
fn from(v: Descriptor) -> Self
Converts to this type from the input type.
Source§impl From<Descriptor> for u16
impl From<Descriptor> for u16
Source§fn from(enum_value: Descriptor) -> Self
fn from(enum_value: Descriptor) -> Self
Converts to this type from the input type.
Source§impl Ord for Descriptor
impl Ord for Descriptor
Source§fn cmp(&self, other: &Descriptor) -> Ordering
fn cmp(&self, other: &Descriptor) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq<Descriptor> for Uuid
impl PartialEq<Descriptor> for Uuid
Source§impl PartialEq<Descriptor> for Uuid16
impl PartialEq<Descriptor> for Uuid16
Source§impl PartialEq<Uuid> for Descriptor
impl PartialEq<Uuid> for Descriptor
Source§impl PartialEq<Uuid16> for Descriptor
impl PartialEq<Uuid16> for Descriptor
Source§impl PartialEq for Descriptor
impl PartialEq for Descriptor
Source§impl PartialOrd for Descriptor
impl PartialOrd for Descriptor
Source§impl TryFrom<Uuid16> for Descriptor
impl TryFrom<Uuid16> for Descriptor
Source§impl TryFrom<u16> for Descriptor
impl TryFrom<u16> for Descriptor
Source§type Error = TryFromPrimitiveError<Descriptor>
type Error = TryFromPrimitiveError<Descriptor>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for Descriptor
impl TryFromPrimitive for Descriptor
impl Copy for Descriptor
impl Eq for Descriptor
impl StructuralPartialEq for Descriptor
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