pub struct InputEvent {
pub timestamp: Timestamp,
pub body: InputEventBody,
}
Fields§
§timestamp: Timestamp
§body: InputEventBody
Trait Implementations§
Source§impl AsRef<InputEventBody> for InputEvent
impl AsRef<InputEventBody> for InputEvent
Source§fn as_ref(&self) -> &InputEventBody
fn as_ref(&self) -> &InputEventBody
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Clone for InputEvent
impl Clone for InputEvent
Source§fn clone(&self) -> InputEvent
fn clone(&self) -> InputEvent
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 InputEvent
impl Debug for InputEvent
Source§impl From<InputEvent> for InputEventBody
impl From<InputEvent> for InputEventBody
Source§fn from(event: InputEvent) -> Self
fn from(event: InputEvent) -> Self
Converts to this type from the input type.
Source§impl From<InputEvent> for RawInputEvent
impl From<InputEvent> for RawInputEvent
Source§fn from(event: InputEvent) -> Self
fn from(event: InputEvent) -> Self
Converts to this type from the input type.
Source§impl From<RawInputEvent> for InputEvent
impl From<RawInputEvent> for InputEvent
Source§fn from(raw_event: RawInputEvent) -> Self
fn from(raw_event: RawInputEvent) -> Self
Converts to this type from the input type.
Source§impl PartialEq for InputEvent
impl PartialEq for InputEvent
impl Eq for InputEvent
impl StructuralPartialEq for InputEvent
Auto Trait Implementations§
impl Freeze for InputEvent
impl RefUnwindSafe for InputEvent
impl Send for InputEvent
impl Sync for InputEvent
impl Unpin for InputEvent
impl UnwindSafe for InputEvent
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