pub enum DispatchEvent {
Mouse(MouseEvent),
Keyboard(KeyboardEvent),
Touch(TouchEvent),
}Expand description
The kinds of input events the dispatcher routes.
Variants§
Mouse(MouseEvent)
A pointer event.
Keyboard(KeyboardEvent)
A keyboard event.
Touch(TouchEvent)
A touch event.
Trait Implementations§
Source§impl Clone for DispatchEvent
impl Clone for DispatchEvent
Source§fn clone(&self) -> DispatchEvent
fn clone(&self) -> DispatchEvent
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 DispatchEvent
impl Debug for DispatchEvent
Source§impl PartialEq for DispatchEvent
impl PartialEq for DispatchEvent
Source§fn eq(&self, other: &DispatchEvent) -> bool
fn eq(&self, other: &DispatchEvent) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DispatchEvent
Auto Trait Implementations§
impl Freeze for DispatchEvent
impl RefUnwindSafe for DispatchEvent
impl Send for DispatchEvent
impl Sync for DispatchEvent
impl Unpin for DispatchEvent
impl UnsafeUnpin for DispatchEvent
impl UnwindSafe for DispatchEvent
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