pub struct LedDecision {
pub on: bool,
pub next_deadline_ms: u64,
}Expand description
The result of a LedEngine::tick: the LED state to apply now and
the absolute monotonic-millisecond deadline at which to tick again.
Fields§
§on: bool§next_deadline_ms: u64Trait Implementations§
Source§impl Clone for LedDecision
impl Clone for LedDecision
Source§fn clone(&self) -> LedDecision
fn clone(&self) -> LedDecision
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LedDecision
impl Debug for LedDecision
Source§impl PartialEq for LedDecision
impl PartialEq for LedDecision
impl Copy for LedDecision
impl Eq for LedDecision
impl StructuralPartialEq for LedDecision
Auto Trait Implementations§
impl Freeze for LedDecision
impl RefUnwindSafe for LedDecision
impl Send for LedDecision
impl Sync for LedDecision
impl Unpin for LedDecision
impl UnwindSafe for LedDecision
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)