enum State {
Idle,
Holding {
since: Instant,
clicks: u8,
long_fired: bool,
},
Gap {
clicks: u8,
released_at: Instant,
},
}Expand description
Phase of the click sequence.
Variants§
Idle
No press in flight.
Holding
Debounced press active.
Fields
§
since: InstantPress start (debounced).
§
clicks: u8Completed presses before this hold.
§
long_fired: boolButtonEvent::LongHold already dispatched for this hold.
Gap
Released after clicks presses; the next press must arrive within
CLICK_GAP or the sequence is reported.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for State
impl RefUnwindSafe for State
impl Send for State
impl Sync for State
impl Unpin for State
impl UnsafeUnpin for State
impl UnwindSafe for State
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§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)