pub enum EventSelector {
State(ButtonPhase),
Tap {
count: u8,
},
HoldStart {
threshold: Duration,
},
HoldMilestone {
threshold: Duration,
},
Repeat,
HoldEnd,
}Expand description
Domain-event portion used when looking up configured bindings.
Variants§
Implementations§
Source§impl EventSelector
impl EventSelector
Sourcepub fn classify(event: &ButtonEvent) -> (ControlId, Self)
pub fn classify(event: &ButtonEvent) -> (ControlId, Self)
Return the control and selector represented by a domain event.
Trait Implementations§
Source§impl Clone for EventSelector
impl Clone for EventSelector
Source§fn clone(&self) -> EventSelector
fn clone(&self) -> EventSelector
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 EventSelector
Source§impl Debug for EventSelector
impl Debug for EventSelector
impl Eq for EventSelector
Source§impl Hash for EventSelector
impl Hash for EventSelector
Source§impl PartialEq for EventSelector
impl PartialEq for EventSelector
impl StructuralPartialEq for EventSelector
Auto Trait Implementations§
impl Freeze for EventSelector
impl RefUnwindSafe for EventSelector
impl Send for EventSelector
impl Sync for EventSelector
impl Unpin for EventSelector
impl UnsafeUnpin for EventSelector
impl UnwindSafe for EventSelector
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