pub enum LedMode {
Off = 0,
On = 1,
BlinkOnce = 2,
BlinkDurationMs = 3,
}Expand description
LED toggle mode.
Variants§
Off = 0
Turn the LED(s) off.
On = 1
Turn the LED(s) on.
BlinkOnce = 2
Blink the LED(s) once.
BlinkDurationMs = 3
Blink the LED(s) for a given duration in milliseconds.
Implementations§
Trait Implementations§
impl Copy for LedMode
impl Eq for LedMode
impl StructuralPartialEq for LedMode
Auto Trait Implementations§
impl Freeze for LedMode
impl RefUnwindSafe for LedMode
impl Send for LedMode
impl Sync for LedMode
impl Unpin for LedMode
impl UnsafeUnpin for LedMode
impl UnwindSafe for LedMode
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