#[repr(u8)]pub enum GenericDeviceType {
Show 34 variants
Incandescent = 0,
SpotlightHalogen = 1,
HalogenBulb = 2,
Cfl = 3,
LinearFluorescent = 4,
LedBulb = 5,
SpotlightLed = 6,
LedStrip = 7,
LedTube = 8,
GenericIndoorLightFixture = 9,
GenericOutdoorLightFixture = 10,
PendantFixture = 11,
FloorStandingLightFixture = 12,
GenericController = 224,
WallSwitch = 225,
PortableRemoteController = 226,
MotionSensorOrLightSensor = 227,
ReservedE4 = 228,
ReservedE5 = 229,
ReservedE6 = 230,
ReservedE7 = 231,
ReservedE8 = 232,
ReservedE9 = 233,
ReservedEa = 234,
ReservedEb = 235,
ReservedEc = 236,
ReservedEd = 237,
ReservedEf = 239,
GenericActuator = 240,
WallSocket = 241,
GatewayOrBridge = 242,
PlugInUnit = 243,
RetrofitActuator = 244,
Unspecified = 255,
}Variants§
Incandescent = 0
SpotlightHalogen = 1
HalogenBulb = 2
Cfl = 3
LinearFluorescent = 4
LedBulb = 5
SpotlightLed = 6
LedStrip = 7
LedTube = 8
GenericIndoorLightFixture = 9
GenericOutdoorLightFixture = 10
PendantFixture = 11
FloorStandingLightFixture = 12
GenericController = 224
WallSwitch = 225
PortableRemoteController = 226
MotionSensorOrLightSensor = 227
ReservedE4 = 228
ReservedE5 = 229
ReservedE6 = 230
ReservedE7 = 231
ReservedE8 = 232
ReservedE9 = 233
ReservedEa = 234
ReservedEb = 235
ReservedEc = 236
ReservedEd = 237
ReservedEf = 239
GenericActuator = 240
WallSocket = 241
GatewayOrBridge = 242
PlugInUnit = 243
RetrofitActuator = 244
Unspecified = 255
Implementations§
Source§impl GenericDeviceType
impl GenericDeviceType
pub const fn try_from_value(value: u8) -> Result<Self, ()>
pub const fn from_value(value: u8) -> Self
Trait Implementations§
Source§impl Clone for GenericDeviceType
impl Clone for GenericDeviceType
Source§fn clone(&self) -> GenericDeviceType
fn clone(&self) -> GenericDeviceType
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 GenericDeviceType
Source§impl Debug for GenericDeviceType
impl Debug for GenericDeviceType
Source§impl PartialEq for GenericDeviceType
impl PartialEq for GenericDeviceType
impl StructuralPartialEq for GenericDeviceType
Auto Trait Implementations§
impl Freeze for GenericDeviceType
impl RefUnwindSafe for GenericDeviceType
impl Send for GenericDeviceType
impl Sync for GenericDeviceType
impl Unpin for GenericDeviceType
impl UnsafeUnpin for GenericDeviceType
impl UnwindSafe for GenericDeviceType
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