pub enum LEDCommand {
On,
Off,
SC {
r: u8,
g: u8,
b: u8,
},
}Expand description
LED command variants for switching on/off or setting a color.
Serialized as JSON with tag "lc".
Variants§
On
Turn the LEDs on (last color or white).
Off
Turn all LEDs off (set to black).
SC
Set the LED strip to the given RGB color.
Trait Implementations§
Source§impl Clone for LEDCommand
impl Clone for LEDCommand
Source§fn clone(&self) -> LEDCommand
fn clone(&self) -> LEDCommand
Returns a duplicate of the value. Read more
1.0.0 · 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 LEDCommand
impl Debug for LEDCommand
Source§impl<'de> Deserialize<'de> for LEDCommand
impl<'de> Deserialize<'de> for LEDCommand
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
Source§impl Serialize for LEDCommand
impl Serialize for LEDCommand
impl Copy for LEDCommand
Auto Trait Implementations§
impl Freeze for LEDCommand
impl RefUnwindSafe for LEDCommand
impl Send for LEDCommand
impl Sync for LEDCommand
impl Unpin for LEDCommand
impl UnwindSafe for LEDCommand
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