#[repr(u8)]pub enum EffectIdentifier {
Blink = 0,
Breathe = 1,
Okay = 2,
Channelchange = 11,
Finisheffect = 254,
Stopeffect = 255,
}Variants§
Blink = 0
e.g., Light is turned on/off once.
Breathe = 1
e.g., Light is turned on/off over 1 second and repeated 15 times.
Okay = 2
e.g., Colored light turns green for 1 second; non-colored light flashes twice.
Channelchange = 11
e.g., Colored light turns orange for 8 seconds; non-colored light switches to the maximum brightness for 0.5s and then minimum brightness for 7.5s.
Finisheffect = 254
Complete the current effect sequence before terminating. e.g., if in the middle of a breathe effect (as above), first complete the current 1s breathe effect and then terminate the effect.
Stopeffect = 255
Terminate the effect as soon as possible.
Implementations§
Trait Implementations§
Source§impl Clone for EffectIdentifier
impl Clone for EffectIdentifier
Source§fn clone(&self) -> EffectIdentifier
fn clone(&self) -> EffectIdentifier
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 EffectIdentifier
impl Debug for EffectIdentifier
Source§impl<'de> Deserialize<'de> for EffectIdentifier
impl<'de> Deserialize<'de> for EffectIdentifier
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 From<EffectIdentifier> for u8
impl From<EffectIdentifier> for u8
Source§fn from(val: EffectIdentifier) -> Self
fn from(val: EffectIdentifier) -> Self
Converts to this type from the input type.
Source§impl PartialEq for EffectIdentifier
impl PartialEq for EffectIdentifier
Source§impl Serialize for EffectIdentifier
impl Serialize for EffectIdentifier
impl Copy for EffectIdentifier
impl Eq for EffectIdentifier
impl StructuralPartialEq for EffectIdentifier
Auto Trait Implementations§
impl Freeze for EffectIdentifier
impl RefUnwindSafe for EffectIdentifier
impl Send for EffectIdentifier
impl Sync for EffectIdentifier
impl Unpin for EffectIdentifier
impl UnwindSafe for EffectIdentifier
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