pub enum ButtonEvent {
Press,
Release,
LongPress,
}Expand description
Abstract button event after long-press detection is resolved.
Variants§
Press
Short press (or immediate press if no long-press configured)
Release
Release (for momentary mode)
LongPress
Long press (held past threshold)
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 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ButtonEvent
Source§impl Debug for ButtonEvent
impl Debug for ButtonEvent
impl Eq for ButtonEvent
Source§impl PartialEq for ButtonEvent
impl PartialEq for ButtonEvent
Source§fn eq(&self, other: &ButtonEvent) -> bool
fn eq(&self, other: &ButtonEvent) -> bool
Tests for
self and other values to be equal, and is used by ==.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§
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