pub struct LedPermanent {
pub control: u8,
pub on_time: u8,
pub off_time: u8,
pub on_color: LedColor,
pub off_color: LedColor,
}Expand description
Permanent LED control sub-block (6 bytes).
Fields§
§control: u8Control code (Table 17): 0=NOP, 1=set permanent state.
on_time: u8On time.
off_time: u8Off time.
on_color: LedColorColor while on.
off_color: LedColorColor while off.
Trait Implementations§
Source§impl Clone for LedPermanent
impl Clone for LedPermanent
Source§fn clone(&self) -> LedPermanent
fn clone(&self) -> LedPermanent
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LedPermanent
impl Debug for LedPermanent
Source§impl PartialEq for LedPermanent
impl PartialEq for LedPermanent
impl Copy for LedPermanent
impl Eq for LedPermanent
impl StructuralPartialEq for LedPermanent
Auto Trait Implementations§
impl Freeze for LedPermanent
impl RefUnwindSafe for LedPermanent
impl Send for LedPermanent
impl Sync for LedPermanent
impl Unpin for LedPermanent
impl UnsafeUnpin for LedPermanent
impl UnwindSafe for LedPermanent
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