Enum burble_const::Descriptor
source · #[non_exhaustive]
#[repr(u16)]
pub enum Descriptor {
Show 16 variants
CharacteristicExtendedProperties,
CharacteristicUserDescription,
ClientCharacteristicConfiguration,
ServerCharacteristicConfiguration,
CharacteristicPresentationFormat,
CharacteristicAggregateFormat,
ValidRange,
ExternalReportReference,
ReportReference,
NumberOfDigitals,
ValueTriggerSetting,
EnvironmentalSensingConfiguration,
EnvironmentalSensingMeasurement,
EnvironmentalSensingTriggerSetting,
TimeTriggerSetting,
CompleteBredrTransportBlockData,
}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
CharacteristicUserDescription
ClientCharacteristicConfiguration
ServerCharacteristicConfiguration
CharacteristicPresentationFormat
CharacteristicAggregateFormat
ValidRange
ExternalReportReference
ReportReference
NumberOfDigitals
ValueTriggerSetting
EnvironmentalSensingConfiguration
EnvironmentalSensingMeasurement
EnvironmentalSensingTriggerSetting
TimeTriggerSetting
CompleteBredrTransportBlockData
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 copy 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 Descriptor
impl PartialEq<Descriptor> for Descriptor
source§fn eq(&self, other: &Descriptor) -> bool
fn eq(&self, other: &Descriptor) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialEq<Descriptor> for Uuid
impl PartialEq<Descriptor> for Uuid
source§fn eq(&self, rhs: &Descriptor) -> bool
fn eq(&self, rhs: &Descriptor) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialEq<Descriptor> for Uuid16
impl PartialEq<Descriptor> for Uuid16
source§fn eq(&self, rhs: &Descriptor) -> bool
fn eq(&self, rhs: &Descriptor) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialEq<Uuid> for Descriptor
impl PartialEq<Uuid> for Descriptor
source§impl PartialEq<Uuid16> for Descriptor
impl PartialEq<Uuid16> for Descriptor
source§impl PartialOrd<Descriptor> for Descriptor
impl PartialOrd<Descriptor> for Descriptor
source§fn partial_cmp(&self, other: &Descriptor) -> Option<Ordering>
fn partial_cmp(&self, other: &Descriptor) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moresource§impl TryFrom<Uuid16> for Descriptor
impl TryFrom<Uuid16> for Descriptor
§type Error = TryFromPrimitiveError<Descriptor>
type Error = TryFromPrimitiveError<Descriptor>
The type returned in the event of a conversion error.
source§impl TryFrom<u16> for Descriptor
impl TryFrom<u16> for Descriptor
§type Error = TryFromPrimitiveError<Descriptor>
type Error = TryFromPrimitiveError<Descriptor>
The type returned in the event of a conversion error.