pub struct LedTemporary {
pub control: u8,
pub on_time: u8,
pub off_time: u8,
pub on_color: LedColor,
pub off_color: LedColor,
pub timer: u16,
}Expand description
Temporary LED control sub-block (6 bytes).
Fields§
§control: u8Control code (Table 16): 0=NOP, 1=cancel temp, 2=set temp.
on_time: u8On time (units of 100 ms).
off_time: u8Off time (units of 100 ms).
on_color: LedColorColor while on.
off_color: LedColorColor while off.
timer: u16Total run time, in units of 100 ms (16-bit LE).
Trait Implementations§
Source§impl Clone for LedTemporary
impl Clone for LedTemporary
Source§fn clone(&self) -> LedTemporary
fn clone(&self) -> LedTemporary
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 LedTemporary
impl Debug for LedTemporary
Source§impl PartialEq for LedTemporary
impl PartialEq for LedTemporary
impl Copy for LedTemporary
impl Eq for LedTemporary
impl StructuralPartialEq for LedTemporary
Auto Trait Implementations§
impl Freeze for LedTemporary
impl RefUnwindSafe for LedTemporary
impl Send for LedTemporary
impl Sync for LedTemporary
impl Unpin for LedTemporary
impl UnsafeUnpin for LedTemporary
impl UnwindSafe for LedTemporary
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