#[repr(u16)]pub enum Colour {
Off = 0,
Green = 1,
Red = 2,
Both = 3,
}Expand description
Tomu LED colours.
Variants§
Off = 0
Turn off both LEDs.
Green = 1
Turn on the green LED only.
Red = 2
Turn on the red LED only.
Both = 3
Turn on both the green and red LEDs.
Trait Implementations§
Source§impl Ord for Colour
impl Ord for Colour
Source§impl PartialOrd for Colour
impl PartialOrd for Colour
impl Copy for Colour
impl Eq for Colour
impl StructuralPartialEq for Colour
Auto Trait Implementations§
impl Freeze for Colour
impl RefUnwindSafe for Colour
impl Send for Colour
impl Sync for Colour
impl Unpin for Colour
impl UnwindSafe for Colour
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