pub struct PeripheralEvent {
pub event_type: EventType,
pub timestamp: u64,
}Expand description
An event emitted by a peripheral (e.g., tap on Core2)
Fields§
§event_type: EventTypeType of event
timestamp: u64Timestamp when event occurred (ms since epoch or boot)
Implementations§
Trait Implementations§
Source§impl Clone for PeripheralEvent
impl Clone for PeripheralEvent
Source§fn clone(&self) -> PeripheralEvent
fn clone(&self) -> PeripheralEvent
Returns a duplicate 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 PeripheralEvent
impl Debug for PeripheralEvent
Source§impl Default for PeripheralEvent
impl Default for PeripheralEvent
Source§fn default() -> PeripheralEvent
fn default() -> PeripheralEvent
Returns the “default value” for a type. Read more
Source§impl PartialEq for PeripheralEvent
impl PartialEq for PeripheralEvent
impl StructuralPartialEq for PeripheralEvent
Auto Trait Implementations§
impl Freeze for PeripheralEvent
impl RefUnwindSafe for PeripheralEvent
impl Send for PeripheralEvent
impl Sync for PeripheralEvent
impl Unpin for PeripheralEvent
impl UnwindSafe for PeripheralEvent
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