pub enum Command {
SetColorSolid(SetColorSolidCommandData),
SetColorCycle(SetColorCycleCommandData),
SetColorBreathe(SetColorBreatheCommandData),
SetColorOff(SetColorOffCommandData),
}Variants§
SetColorSolid(SetColorSolidCommandData)
SetColorCycle(SetColorCycleCommandData)
SetColorBreathe(SetColorBreatheCommandData)
SetColorOff(SetColorOffCommandData)
Implementations§
Source§impl Command
impl Command
pub fn new_color_solid(target: Target, color: Color) -> Self
pub fn new_color_cycle(target: Target, rate: u16, brightness: u8) -> Self
pub fn new_color_breathe( target: Target, color: Color, rate: u16, brightness: u8, ) -> Self
pub fn new_color_off(target: Target) -> Self
pub fn target(&self) -> Target
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Command
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnwindSafe for Command
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