#[non_exhaustive]pub enum LightAction {
Show 28 variants
BacklightOn,
BacklightOff,
BacklightToggle,
BacklightDown,
BacklightUp,
BacklightStep,
BacklightToggleBreathing,
RgbTog,
RgbModeForward,
RgbModeReverse,
RgbHui,
RgbHud,
RgbSai,
RgbSad,
RgbVai,
RgbVad,
RgbSpi,
RgbSpd,
RgbModePlain,
RgbModeBreathe,
RgbModeRainbow,
RgbModeSwirl,
RgbModeSnake,
RgbModeKnight,
RgbModeXmas,
RgbModeGradient,
RgbModeRgbtest,
RgbModeTwinkle,
}Expand description
Actions for controlling lights
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.
BacklightOn
BacklightOff
BacklightToggle
BacklightDown
BacklightUp
BacklightStep
BacklightToggleBreathing
RgbTog
RgbModeForward
RgbModeReverse
RgbHui
RgbHud
RgbSai
RgbSad
RgbVai
RgbVad
RgbSpi
RgbSpd
RgbModePlain
RgbModeBreathe
RgbModeRainbow
RgbModeSwirl
RgbModeSnake
RgbModeKnight
RgbModeXmas
RgbModeGradient
RgbModeRgbtest
RgbModeTwinkle
Trait Implementations§
Source§impl Clone for LightAction
impl Clone for LightAction
Source§fn clone(&self) -> LightAction
fn clone(&self) -> LightAction
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 LightAction
Source§impl Debug for LightAction
impl Debug for LightAction
Source§impl<'de> Deserialize<'de> for LightAction
impl<'de> Deserialize<'de> for LightAction
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 LightAction
Source§impl MaxSize for LightAction
impl MaxSize for LightAction
Source§const POSTCARD_MAX_SIZE: usize
const POSTCARD_MAX_SIZE: usize
The maximum possible size that the serialization of this
type can have, in bytes.
Source§impl PartialEq for LightAction
impl PartialEq for LightAction
Source§impl Serialize for LightAction
impl Serialize for LightAction
impl StructuralPartialEq for LightAction
Auto Trait Implementations§
impl Freeze for LightAction
impl RefUnwindSafe for LightAction
impl Send for LightAction
impl Sync for LightAction
impl Unpin for LightAction
impl UnsafeUnpin for LightAction
impl UnwindSafe for LightAction
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