pub enum DisplayEvent {
EncoderOverlay {
side: DisplaySide,
label: Label,
value: u8,
},
AnalogOverlay {
side: DisplaySide,
label: Label,
value: u8,
},
LongPressHint {
action: SystemAction,
},
LongPressCancel,
BpmOverlay {
bpm: u16,
},
}Expand description
Display events emitted directly from actions.
Variants§
EncoderOverlay
AnalogOverlay
LongPressHint
Shown while holding a button with on_long_press (before threshold fires)
Fields
§
action: SystemActionLongPressCancel
Clear the hint (button released before threshold)
BpmOverlay
Tap tempo BPM overlay (shown briefly after BPM is computed)
Trait Implementations§
Source§impl Clone for DisplayEvent
impl Clone for DisplayEvent
Source§fn clone(&self) -> DisplayEvent
fn clone(&self) -> DisplayEvent
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 moreSource§impl Debug for DisplayEvent
impl Debug for DisplayEvent
impl Eq for DisplayEvent
Source§impl PartialEq for DisplayEvent
impl PartialEq for DisplayEvent
Source§fn eq(&self, other: &DisplayEvent) -> bool
fn eq(&self, other: &DisplayEvent) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DisplayEvent
Auto Trait Implementations§
impl Freeze for DisplayEvent
impl RefUnwindSafe for DisplayEvent
impl Send for DisplayEvent
impl Sync for DisplayEvent
impl Unpin for DisplayEvent
impl UnsafeUnpin for DisplayEvent
impl UnwindSafe for DisplayEvent
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