pub struct Rgba { /* private fields */ }Available on crate feature
rgba_status only.Expand description
Trait Implementations§
Source§impl LedControl for Rgba
impl LedControl for Rgba
Source§fn init(
gpio6: Pin<Gpio6, FunctionNull, PullDown>,
gpio7: Pin<Gpio7, FunctionNull, PullDown>,
gpio8: Pin<Gpio8, FunctionNull, PullDown>,
) -> Option<&'static mut StatusLedBase<Rgba>>
fn init( gpio6: Pin<Gpio6, FunctionNull, PullDown>, gpio7: Pin<Gpio7, FunctionNull, PullDown>, gpio8: Pin<Gpio8, FunctionNull, PullDown>, ) -> Option<&'static mut StatusLedBase<Rgba>>
Initialize LEDs. Read more
Source§fn set_led(
&mut self,
old_state: &StatusLedStates,
new_state: StatusLedStates,
) -> StatusLedStates
fn set_led( &mut self, old_state: &StatusLedStates, new_state: StatusLedStates, ) -> StatusLedStates
Set the LEDs to match the current state. Any internal state should also be set. Read more
Auto Trait Implementations§
impl Freeze for Rgba
impl RefUnwindSafe for Rgba
impl Send for Rgba
impl Sync for Rgba
impl Unpin for Rgba
impl UnwindSafe for Rgba
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
Source§impl<Choices> CoproductSubsetter<CNil, HNil> for Choices
impl<Choices> CoproductSubsetter<CNil, HNil> for Choices
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more