Enum async_button::ButtonEvent
source · pub enum ButtonEvent {
ShortPress {
count: usize,
},
LongPress,
}
Expand description
Detected button events
Variants§
ShortPress
A sequence of 1 or more short presses.
LongPress
A long press. This event is returned directly when the button is held for more than
ButtonConfig::long_press
.
Trait Implementations§
source§impl Clone for ButtonEvent
impl Clone for ButtonEvent
source§fn clone(&self) -> ButtonEvent
fn clone(&self) -> ButtonEvent
Returns a copy 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 ButtonEvent
impl Debug for ButtonEvent
source§impl PartialEq for ButtonEvent
impl PartialEq for ButtonEvent
source§fn eq(&self, other: &ButtonEvent) -> bool
fn eq(&self, other: &ButtonEvent) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for ButtonEvent
impl Eq for ButtonEvent
impl StructuralEq for ButtonEvent
impl StructuralPartialEq for ButtonEvent
Auto Trait Implementations§
impl RefUnwindSafe for ButtonEvent
impl Send for ButtonEvent
impl Sync for ButtonEvent
impl Unpin 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