pub enum WristRawInput {
Button {
id: Symbol,
held_ms: u64,
at_ms: u64,
},
Crown {
delta: i32,
press: bool,
target: Expr,
at_ms: u64,
},
Tap {
count: u8,
target: Expr,
span_ms: u64,
at_ms: u64,
},
Raise {
target: Expr,
stable_ms: u64,
at_ms: u64,
},
Touch {
hit: Hit,
at_ms: u64,
},
}Expand description
A physical watch input before it has Intent meaning.
Variants§
Button
A T-Rex button press.
Fields
Crown
A crown or rotary input, only accepted when the profile advertises it.
Fields
Tap
A single, double, or triple tap pattern.
Fields
Raise
A raise pattern after motion filtering.
Fields
Touch
A touch hit on the watch surface.
Trait Implementations§
Source§impl Clone for WristRawInput
impl Clone for WristRawInput
Source§fn clone(&self) -> WristRawInput
fn clone(&self) -> WristRawInput
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 WristRawInput
impl Debug for WristRawInput
Source§impl PartialEq for WristRawInput
impl PartialEq for WristRawInput
impl StructuralPartialEq for WristRawInput
Auto Trait Implementations§
impl Freeze for WristRawInput
impl RefUnwindSafe for WristRawInput
impl Send for WristRawInput
impl Sync for WristRawInput
impl Unpin for WristRawInput
impl UnsafeUnpin for WristRawInput
impl UnwindSafe for WristRawInput
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