Struct typed_html::events::Events

source ·
pub struct Events<T: OutputType> {
Show 34 fields pub abort: Option<Box<dyn EventHandler<T, ResourceAbortEvent>>>, pub blur: Option<Box<dyn EventHandler<T, BlurEvent>>>, pub change: Option<Box<dyn EventHandler<T, ChangeEvent>>>, pub click: Option<Box<dyn EventHandler<T, ClickEvent>>>, pub contextmenu: Option<Box<dyn EventHandler<T, ContextMenuEvent>>>, pub dblclick: Option<Box<dyn EventHandler<T, DoubleClickEvent>>>, pub drag: Option<Box<dyn EventHandler<T, DragEvent>>>, pub dragend: Option<Box<dyn EventHandler<T, DragEndEvent>>>, pub dragenter: Option<Box<dyn EventHandler<T, DragEnterEvent>>>, pub dragexit: Option<Box<dyn EventHandler<T, DragExitEvent>>>, pub dragleave: Option<Box<dyn EventHandler<T, DragLeaveEvent>>>, pub dragover: Option<Box<dyn EventHandler<T, DragOverEvent>>>, pub dragstart: Option<Box<dyn EventHandler<T, DragStartEvent>>>, pub drop: Option<Box<dyn EventHandler<T, DragDropEvent>>>, pub error: Option<Box<dyn EventHandler<T, ResourceErrorEvent>>>, pub focus: Option<Box<dyn EventHandler<T, FocusEvent>>>, pub input: Option<Box<dyn EventHandler<T, InputEvent>>>, pub keydown: Option<Box<dyn EventHandler<T, KeyDownEvent>>>, pub keypress: Option<Box<dyn EventHandler<T, KeyPressEvent>>>, pub keyup: Option<Box<dyn EventHandler<T, KeyUpEvent>>>, pub load: Option<Box<dyn EventHandler<T, ResourceLoadEvent>>>, pub loadstart: Option<Box<dyn EventHandler<T, LoadStartEvent>>>, pub mousedown: Option<Box<dyn EventHandler<T, MouseDownEvent>>>, pub mouseenter: Option<Box<dyn EventHandler<T, MouseEnterEvent>>>, pub mouseleave: Option<Box<dyn EventHandler<T, MouseLeaveEvent>>>, pub mousemove: Option<Box<dyn EventHandler<T, MouseMoveEvent>>>, pub mouseout: Option<Box<dyn EventHandler<T, MouseOutEvent>>>, pub mouseover: Option<Box<dyn EventHandler<T, MouseOverEvent>>>, pub mouseup: Option<Box<dyn EventHandler<T, MouseUpEvent>>>, pub mousewheel: Option<Box<dyn EventHandler<T, MouseWheelEvent>>>, pub progress: Option<Box<dyn EventHandler<T, ProgressEvent>>>, pub resize: Option<Box<dyn EventHandler<T, ResizeEvent>>>, pub scroll: Option<Box<dyn EventHandler<T, ScrollEvent>>>, pub submit: Option<Box<dyn EventHandler<T, SubmitEvent>>>,
}
Expand description

Container type for DOM events.

Fields

abort: Option<Box<dyn EventHandler<T, ResourceAbortEvent>>>blur: Option<Box<dyn EventHandler<T, BlurEvent>>>change: Option<Box<dyn EventHandler<T, ChangeEvent>>>click: Option<Box<dyn EventHandler<T, ClickEvent>>>contextmenu: Option<Box<dyn EventHandler<T, ContextMenuEvent>>>dblclick: Option<Box<dyn EventHandler<T, DoubleClickEvent>>>drag: Option<Box<dyn EventHandler<T, DragEvent>>>dragend: Option<Box<dyn EventHandler<T, DragEndEvent>>>dragenter: Option<Box<dyn EventHandler<T, DragEnterEvent>>>dragexit: Option<Box<dyn EventHandler<T, DragExitEvent>>>dragleave: Option<Box<dyn EventHandler<T, DragLeaveEvent>>>dragover: Option<Box<dyn EventHandler<T, DragOverEvent>>>dragstart: Option<Box<dyn EventHandler<T, DragStartEvent>>>drop: Option<Box<dyn EventHandler<T, DragDropEvent>>>error: Option<Box<dyn EventHandler<T, ResourceErrorEvent>>>focus: Option<Box<dyn EventHandler<T, FocusEvent>>>input: Option<Box<dyn EventHandler<T, InputEvent>>>keydown: Option<Box<dyn EventHandler<T, KeyDownEvent>>>keypress: Option<Box<dyn EventHandler<T, KeyPressEvent>>>keyup: Option<Box<dyn EventHandler<T, KeyUpEvent>>>load: Option<Box<dyn EventHandler<T, ResourceLoadEvent>>>loadstart: Option<Box<dyn EventHandler<T, LoadStartEvent>>>mousedown: Option<Box<dyn EventHandler<T, MouseDownEvent>>>mouseenter: Option<Box<dyn EventHandler<T, MouseEnterEvent>>>mouseleave: Option<Box<dyn EventHandler<T, MouseLeaveEvent>>>mousemove: Option<Box<dyn EventHandler<T, MouseMoveEvent>>>mouseout: Option<Box<dyn EventHandler<T, MouseOutEvent>>>mouseover: Option<Box<dyn EventHandler<T, MouseOverEvent>>>mouseup: Option<Box<dyn EventHandler<T, MouseUpEvent>>>mousewheel: Option<Box<dyn EventHandler<T, MouseWheelEvent>>>progress: Option<Box<dyn EventHandler<T, ProgressEvent>>>resize: Option<Box<dyn EventHandler<T, ResizeEvent>>>scroll: Option<Box<dyn EventHandler<T, ScrollEvent>>>submit: Option<Box<dyn EventHandler<T, SubmitEvent>>>

Trait Implementations

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.