#[non_exhaustive]pub enum CharacteristicType {
Show 22 variants
Identify,
Manufacturer,
Model,
Name,
SerialNumber,
FirmwareRevision,
On,
Brightness,
Hue,
Saturation,
ColorTemperature,
CurrentTemperature,
TargetTemperature,
CurrentRelativeHumidity,
MotionDetected,
ContactSensorState,
LockCurrentState,
LockTargetState,
BatteryLevel,
StatusLowBattery,
OutletInUse,
Unknown(Uuid),
}Expand description
HAP-defined CharacteristicType (generated). Unknown carries any non-HAP UUID.
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.
Identify
HAP short type “14”.
Manufacturer
HAP short type “20”.
Model
HAP short type “21”.
Name
HAP short type “23”.
SerialNumber
HAP short type “30”.
FirmwareRevision
HAP short type “52”.
On
HAP short type “25”.
Brightness
HAP short type “8”.
Hue
HAP short type “13”.
Saturation
HAP short type “2F”.
ColorTemperature
HAP short type “CE”.
CurrentTemperature
HAP short type “11”.
TargetTemperature
HAP short type “35”.
CurrentRelativeHumidity
HAP short type “10”.
MotionDetected
HAP short type “22”.
ContactSensorState
HAP short type “6A”.
LockCurrentState
HAP short type “1D”.
LockTargetState
HAP short type “1E”.
BatteryLevel
HAP short type “68”.
StatusLowBattery
HAP short type “79”.
OutletInUse
HAP short type “26”.
Unknown(Uuid)
A type not in the generated table.
Implementations§
Trait Implementations§
Source§impl Clone for CharacteristicType
impl Clone for CharacteristicType
Source§fn clone(&self) -> CharacteristicType
fn clone(&self) -> CharacteristicType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CharacteristicType
impl Debug for CharacteristicType
impl Eq for CharacteristicType
Source§impl Hash for CharacteristicType
impl Hash for CharacteristicType
Source§impl PartialEq for CharacteristicType
impl PartialEq for CharacteristicType
Source§fn eq(&self, other: &CharacteristicType) -> bool
fn eq(&self, other: &CharacteristicType) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CharacteristicType
Auto Trait Implementations§
impl Freeze for CharacteristicType
impl RefUnwindSafe for CharacteristicType
impl Send for CharacteristicType
impl Sync for CharacteristicType
impl Unpin for CharacteristicType
impl UnsafeUnpin for CharacteristicType
impl UnwindSafe for CharacteristicType
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