pub enum HapCharacteristic {
On,
Brightness,
CurrentTemperature,
CurrentRelativeHumidity,
OccupancyDetected,
MotionDetected,
LeakDetected,
ContactSensorState,
CurrentDoorState,
LockCurrentState,
SecuritySystemCurrentState,
}Expand description
HAP characteristic identifiers that the bridge reads or writes.
Each variant corresponds to one HAP characteristic UUID as specified in HomeKit Accessory Protocol Specification §9.
Variants§
On
On (bool) — Lightbulb / Switch power state.
Brightness
Brightness (uint8, 0–100) — Lightbulb brightness percentage.
CurrentTemperature
CurrentTemperature (float, °C) — TemperatureSensor reading.
CurrentRelativeHumidity
CurrentRelativeHumidity (float, %) — HumiditySensor reading.
OccupancyDetected
OccupancyDetected (uint8, 0=not detected, 1=detected).
MotionDetected
MotionDetected (bool).
LeakDetected
LeakDetected (uint8, 0=no leak, 1=leak detected). Re-used for falls.
ContactSensorState
ContactSensorState (uint8, 0=in contact, 1=not in contact).
CurrentDoorState
CurrentDoorState (uint8, HAP §9.30).
LockCurrentState
LockCurrentState (uint8, HAP §9.56).
SecuritySystemCurrentState
SecuritySystemCurrentState (uint8, HAP §9.97).
Trait Implementations§
Source§impl Clone for HapCharacteristic
impl Clone for HapCharacteristic
Source§fn clone(&self) -> HapCharacteristic
fn clone(&self) -> HapCharacteristic
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 moreimpl Copy for HapCharacteristic
Source§impl Debug for HapCharacteristic
impl Debug for HapCharacteristic
Source§impl<'de> Deserialize<'de> for HapCharacteristic
impl<'de> Deserialize<'de> for HapCharacteristic
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for HapCharacteristic
Source§impl Hash for HapCharacteristic
impl Hash for HapCharacteristic
Source§impl PartialEq for HapCharacteristic
impl PartialEq for HapCharacteristic
Source§impl Serialize for HapCharacteristic
impl Serialize for HapCharacteristic
impl StructuralPartialEq for HapCharacteristic
Auto Trait Implementations§
impl Freeze for HapCharacteristic
impl RefUnwindSafe for HapCharacteristic
impl Send for HapCharacteristic
impl Sync for HapCharacteristic
impl Unpin for HapCharacteristic
impl UnsafeUnpin for HapCharacteristic
impl UnwindSafe for HapCharacteristic
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