pub enum Pattern {
Police,
TrafficLights,
Random(u8),
}
Expand description
A pattern the light can be set to show.
Variants§
Police
A preset pattern that cycles between red and blue.
TrafficLights
A preset pattern that cycles between green,. yellow, and red.
Random(u8)
Preset random patterns
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Pattern
impl RefUnwindSafe for Pattern
impl Send for Pattern
impl Sync for Pattern
impl Unpin for Pattern
impl UnwindSafe for Pattern
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