pub enum EffectType<T: TimeInt = u32> {
Pulse(Milliseconds<T>),
Blink(Hertz<T>),
}
Expand description
LED Effect type
Variants§
Pulse(Milliseconds<T>)
Single pulse. Effects does not repeat
Blink(Hertz<T>)
Blink at given Hz value
Trait Implementations§
Source§impl<T: Clone + TimeInt> Clone for EffectType<T>
impl<T: Clone + TimeInt> Clone for EffectType<T>
Source§fn clone(&self) -> EffectType<T>
fn clone(&self) -> EffectType<T>
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 moreimpl<T: Copy + TimeInt> Copy for EffectType<T>
Auto Trait Implementations§
impl<T> Freeze for EffectType<T>where
T: Freeze,
impl<T> RefUnwindSafe for EffectType<T>where
T: RefUnwindSafe,
impl<T> Send for EffectType<T>where
T: Send,
impl<T> Sync for EffectType<T>where
T: Sync,
impl<T> Unpin for EffectType<T>where
T: Unpin,
impl<T> UnwindSafe for EffectType<T>where
T: UnwindSafe,
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