pub enum DeviceStateUpdate {
ButtonDown(u8),
ButtonUp(u8),
EncoderDown(u8),
EncoderUp(u8),
EncoderTwist(u8, i8),
TouchScreenPress(u16, u16),
TouchScreenLongPress(u16, u16),
TouchScreenSwipe((u16, u16), (u16, u16)),
}Available on crate feature
async only.Expand description
Tells what changed in button states
Variants§
ButtonDown(u8)
Button got pressed down
ButtonUp(u8)
Button got released
EncoderDown(u8)
Encoder got pressed down
EncoderUp(u8)
Encoder was released from being pressed down
EncoderTwist(u8, i8)
Encoder was twisted
TouchScreenPress(u16, u16)
Touch screen received short press
TouchScreenLongPress(u16, u16)
Touch screen received long press
TouchScreenSwipe((u16, u16), (u16, u16))
Touch screen received a swipe
Trait Implementations§
source§impl Clone for DeviceStateUpdate
impl Clone for DeviceStateUpdate
source§fn clone(&self) -> DeviceStateUpdate
fn clone(&self) -> DeviceStateUpdate
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 DeviceStateUpdate
impl Debug for DeviceStateUpdate
source§impl Hash for DeviceStateUpdate
impl Hash for DeviceStateUpdate
impl Copy for DeviceStateUpdate
Auto Trait Implementations§
impl RefUnwindSafe for DeviceStateUpdate
impl Send for DeviceStateUpdate
impl Sync for DeviceStateUpdate
impl Unpin for DeviceStateUpdate
impl UnwindSafe for DeviceStateUpdate
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