pub struct ScreenOnLedSingle<'a, L: LedIndexed> { /* private fields */ }
Expand description
A simple wrapper type to contain the index of the LED.
Since we don’t have a single GPIO pin to use, we instead store the index
and call into the shared ScreenOnLed
.
Implementations§
Source§impl<'a, L: LedIndexed> ScreenOnLedSingle<'a, L>
impl<'a, L: LedIndexed> ScreenOnLedSingle<'a, L>
Trait Implementations§
Source§impl<L: LedIndexed> Led for ScreenOnLedSingle<'_, L>
impl<L: LedIndexed> Led for ScreenOnLedSingle<'_, L>
Auto Trait Implementations§
impl<'a, L> Freeze for ScreenOnLedSingle<'a, L>
impl<'a, L> RefUnwindSafe for ScreenOnLedSingle<'a, L>where
L: RefUnwindSafe,
impl<'a, L> Send for ScreenOnLedSingle<'a, L>where
L: Sync,
impl<'a, L> Sync for ScreenOnLedSingle<'a, L>where
L: Sync,
impl<'a, L> Unpin for ScreenOnLedSingle<'a, L>
impl<'a, L> UnwindSafe for ScreenOnLedSingle<'a, L>where
L: RefUnwindSafe,
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