#[non_exhaustive]pub enum LightCommand {
On,
Off,
Toggle,
SetLevel {
level: u8,
transition_time: u16,
},
MoveToColor {
x: Option<u16>,
y: Option<u16>,
transition_time: u16,
},
MoveToColorTemp {
mireds: u16,
transition_time: u16,
},
MoveToHueAndSaturation {
hue: Option<u8>,
saturation: Option<u8>,
transition_time: u16,
},
EnhancedMoveToHueAndSaturation {
enhanced_hue: u16,
saturation: Option<u8>,
transition_time: u16,
},
Identify {
duration: u16,
},
TriggerEffect {
effect_id: u8,
variant: u8,
},
StopMoveStep,
}Expand description
Commands that can be received from the Hue Bridge or other ZCL controllers.
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.
On
Off
Toggle
SetLevel
MoveToColor
Fields
MoveToColorTemp
MoveToHueAndSaturation
Fields
EnhancedMoveToHueAndSaturation
Fields
Identify
TriggerEffect
ZCL Identify cluster TriggerEffect command (0x40). effect_id: 0x00=Blink, 0x01=Breathe, 0x02=Okay, 0x0B=ChannelChange, 0xFE=FinishEffect (run to completion), 0xFF=StopEffect.
StopMoveStep
Trait Implementations§
Source§impl Clone for LightCommand
impl Clone for LightCommand
Source§fn clone(&self) -> LightCommand
fn clone(&self) -> LightCommand
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 moreAuto Trait Implementations§
impl Freeze for LightCommand
impl RefUnwindSafe for LightCommand
impl Send for LightCommand
impl Sync for LightCommand
impl Unpin for LightCommand
impl UnsafeUnpin for LightCommand
impl UnwindSafe for LightCommand
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