#[non_exhaustive]pub enum ServiceType {
Show 15 variants
AccessoryInformation,
ProtocolInformation,
LightBulb,
Switch,
Outlet,
Fan,
Thermostat,
TemperatureSensor,
HumiditySensor,
MotionSensor,
ContactSensor,
GarageDoorOpener,
LockMechanism,
Battery,
Unknown(Uuid),
}Expand description
HAP-defined ServiceType (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.
AccessoryInformation
HAP short type “3E”.
ProtocolInformation
HAP short type “A2”.
LightBulb
HAP short type “43”.
Switch
HAP short type “49”.
Outlet
HAP short type “47”.
Fan
HAP short type “40”.
Thermostat
HAP short type “4A”.
TemperatureSensor
HAP short type “8A”.
HumiditySensor
HAP short type “82”.
MotionSensor
HAP short type “85”.
ContactSensor
HAP short type “80”.
GarageDoorOpener
HAP short type “41”.
LockMechanism
HAP short type “45”.
Battery
HAP short type “96”.
Unknown(Uuid)
A type not in the generated table.
Implementations§
Trait Implementations§
Source§impl Clone for ServiceType
impl Clone for ServiceType
Source§fn clone(&self) -> ServiceType
fn clone(&self) -> ServiceType
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 ServiceType
impl Debug for ServiceType
impl Eq for ServiceType
Source§impl Hash for ServiceType
impl Hash for ServiceType
Source§impl PartialEq for ServiceType
impl PartialEq for ServiceType
Source§fn eq(&self, other: &ServiceType) -> bool
fn eq(&self, other: &ServiceType) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ServiceType
Auto Trait Implementations§
impl Freeze for ServiceType
impl RefUnwindSafe for ServiceType
impl Send for ServiceType
impl Sync for ServiceType
impl Unpin for ServiceType
impl UnsafeUnpin for ServiceType
impl UnwindSafe for ServiceType
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