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.
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