#[repr(u8)]pub enum EventType {
None = 0,
Ping = 1,
NeedAssist = 2,
Emergency = 3,
Moving = 4,
InPosition = 5,
Ack = 6,
}Expand description
Event types that a peripheral can emit (e.g., from tap input)
Variants§
None = 0
No event / cleared
Ping = 1
“I’m OK” ping
NeedAssist = 2
Request assistance
Emergency = 3
Emergency / SOS
Moving = 4
Moving / in transit
InPosition = 5
In position / stationary
Ack = 6
Acknowledged / copy
Implementations§
Trait Implementations§
impl Copy for EventType
impl Eq for EventType
impl StructuralPartialEq for EventType
Auto Trait Implementations§
impl Freeze for EventType
impl RefUnwindSafe for EventType
impl Send for EventType
impl Sync for EventType
impl Unpin for EventType
impl UnwindSafe for EventType
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