pub enum ButtonEvent {
SingleClick = 0,
DoubleClick = 1,
MultipleClick = 2,
LongHold = 3,
}Expand description
Button event classified at runtime.
The discriminant is the key into Config::button_actions (web:
ButtonEvent).
Variants§
SingleClick = 0
One press and release (button_actions key 0).
DoubleClick = 1
Two presses within CLICK_GAP (key 1).
MultipleClick = 2
Three presses within CLICK_GAP (key 2).
LongHold = 3
Held for at least LONG_HOLD (key 3).
Trait Implementations§
Source§impl Clone for ButtonEvent
impl Clone for ButtonEvent
Source§fn clone(&self) -> ButtonEvent
fn clone(&self) -> ButtonEvent
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 ButtonEvent
impl Debug for ButtonEvent
Source§impl From<ButtonEvent> for u8
impl From<ButtonEvent> for u8
Source§fn from(event: ButtonEvent) -> Self
fn from(event: ButtonEvent) -> Self
Event → button_actions map key.
Source§impl PartialEq for ButtonEvent
impl PartialEq for ButtonEvent
impl Copy for ButtonEvent
impl Eq for ButtonEvent
impl StructuralPartialEq for ButtonEvent
Auto Trait Implementations§
impl Freeze for ButtonEvent
impl RefUnwindSafe for ButtonEvent
impl Send for ButtonEvent
impl Sync for ButtonEvent
impl Unpin for ButtonEvent
impl UnsafeUnpin for ButtonEvent
impl UnwindSafe for ButtonEvent
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)