pub enum NativeEvent {
Mouse(NativeMouseEvent),
Input(NativeInputEvent),
Keyboard(NativeKeyboardEvent),
Focus(NativeFocusEvent),
Submit(NativeSubmitEvent),
Change(NativeChangeEvent),
Drag(NativeDragEvent),
Touch(NativeTouchEvent),
Wheel(NativeWheelEvent),
Clipboard(NativeClipboardEvent),
Media(NativeMediaEvent),
Generic,
}Expand description
Represents different kinds of UI events.
Each variant wraps the specific data associated with that event type.
Variants§
Mouse(NativeMouseEvent)
A mouse-related event.
Input(NativeInputEvent)
An input change event.
Keyboard(NativeKeyboardEvent)
A keyboard event.
Focus(NativeFocusEvent)
A focus event.
Submit(NativeSubmitEvent)
A form submit event.
Change(NativeChangeEvent)
A change event for select/checkbox/radio.
Drag(NativeDragEvent)
A drag and drop event.
Touch(NativeTouchEvent)
A touch event.
Wheel(NativeWheelEvent)
A wheel/scroll event.
Clipboard(NativeClipboardEvent)
A clipboard event.
Media(NativeMediaEvent)
A media event.
Generic
A generic event with no specific data.
Trait Implementations§
Source§impl Clone for NativeEvent
impl Clone for NativeEvent
Source§fn clone(&self) -> NativeEvent
fn clone(&self) -> NativeEvent
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 NativeEvent
impl Debug for NativeEvent
Source§impl PartialEq for NativeEvent
impl PartialEq for NativeEvent
Source§fn eq(&self, other: &NativeEvent) -> bool
fn eq(&self, other: &NativeEvent) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for NativeEvent
Auto Trait Implementations§
impl Freeze for NativeEvent
impl RefUnwindSafe for NativeEvent
impl Send for NativeEvent
impl Sync for NativeEvent
impl Unpin for NativeEvent
impl UnsafeUnpin for NativeEvent
impl UnwindSafe for NativeEvent
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