pub trait StaticEvent {
    const EVENT_TYPE: &'static str;

    // Required method
    fn unchecked_from_event(event: Event) -> Self;

    // Provided method
    fn default_options(preventable: bool) -> EventOptions { ... }
}

Required Associated Constants§

source

const EVENT_TYPE: &'static str

Required Methods§

Provided Methods§

Implementors§

source§

impl StaticEvent for AnimationCancel

source§

const EVENT_TYPE: &'static str = "animationcancel"

source§

impl StaticEvent for AnimationEnd

source§

const EVENT_TYPE: &'static str = "animationend"

source§

impl StaticEvent for AnimationIteration

source§

const EVENT_TYPE: &'static str = "animationiteration"

source§

impl StaticEvent for AnimationStart

source§

const EVENT_TYPE: &'static str = "animationstart"

source§

impl StaticEvent for BeforeInput

source§

const EVENT_TYPE: &'static str = "beforeinput"

source§

impl StaticEvent for Blur

source§

const EVENT_TYPE: &'static str = "blur"

source§

impl StaticEvent for Change

source§

const EVENT_TYPE: &'static str = "change"

source§

impl StaticEvent for Click

source§

const EVENT_TYPE: &'static str = "click"

source§

impl StaticEvent for ContextMenu

source§

const EVENT_TYPE: &'static str = "contextmenu"

source§

impl StaticEvent for DoubleClick

source§

const EVENT_TYPE: &'static str = "dblclick"

source§

impl StaticEvent for Drag

source§

const EVENT_TYPE: &'static str = "drag"

source§

impl StaticEvent for DragEnd

source§

const EVENT_TYPE: &'static str = "dragend"

source§

impl StaticEvent for DragEnter

source§

const EVENT_TYPE: &'static str = "dragenter"

source§

impl StaticEvent for DragLeave

source§

const EVENT_TYPE: &'static str = "dragleave"

source§

impl StaticEvent for DragOver

source§

const EVENT_TYPE: &'static str = "dragover"

source§

impl StaticEvent for DragStart

source§

const EVENT_TYPE: &'static str = "dragstart"

source§

impl StaticEvent for Drop

source§

const EVENT_TYPE: &'static str = "drop"

source§

impl StaticEvent for Error

source§

const EVENT_TYPE: &'static str = "error"

source§

impl StaticEvent for Focus

source§

const EVENT_TYPE: &'static str = "focus"

source§

impl StaticEvent for FocusIn

source§

const EVENT_TYPE: &'static str = "focusin"

source§

impl StaticEvent for FocusOut

source§

const EVENT_TYPE: &'static str = "focusout"

source§

impl StaticEvent for GotPointerCapture

source§

const EVENT_TYPE: &'static str = "gotpointercapture"

source§

impl StaticEvent for Input

source§

const EVENT_TYPE: &'static str = "input"

source§

impl StaticEvent for KeyDown

source§

const EVENT_TYPE: &'static str = "keydown"

source§

impl StaticEvent for KeyUp

source§

const EVENT_TYPE: &'static str = "keyup"

source§

impl StaticEvent for Load

source§

const EVENT_TYPE: &'static str = "load"

source§

impl StaticEvent for LostPointerCapture

source§

const EVENT_TYPE: &'static str = "lostpointercapture"

source§

impl StaticEvent for MouseDown

source§

const EVENT_TYPE: &'static str = "mousedown"

source§

impl StaticEvent for MouseEnter

source§

const EVENT_TYPE: &'static str = "mouseenter"

source§

impl StaticEvent for MouseLeave

source§

const EVENT_TYPE: &'static str = "mouseleave"

source§

impl StaticEvent for MouseMove

source§

const EVENT_TYPE: &'static str = "mousemove"

source§

impl StaticEvent for MouseUp

source§

const EVENT_TYPE: &'static str = "mouseup"

source§

impl StaticEvent for PointerCancel

source§

const EVENT_TYPE: &'static str = "pointercancel"

source§

impl StaticEvent for PointerDown

source§

const EVENT_TYPE: &'static str = "pointerdown"

source§

impl StaticEvent for PointerEnter

source§

const EVENT_TYPE: &'static str = "pointerenter"

source§

impl StaticEvent for PointerLeave

source§

const EVENT_TYPE: &'static str = "pointerleave"

source§

impl StaticEvent for PointerMove

source§

const EVENT_TYPE: &'static str = "pointermove"

source§

impl StaticEvent for PointerOut

source§

const EVENT_TYPE: &'static str = "pointerout"

source§

impl StaticEvent for PointerOver

source§

const EVENT_TYPE: &'static str = "pointerover"

source§

impl StaticEvent for PointerUp

source§

const EVENT_TYPE: &'static str = "pointerup"

source§

impl StaticEvent for Resize

source§

const EVENT_TYPE: &'static str = "resize"

source§

impl StaticEvent for Scroll

source§

const EVENT_TYPE: &'static str = "scroll"

source§

impl StaticEvent for SelectionChange

source§

const EVENT_TYPE: &'static str = "selectionchange"

source§

impl StaticEvent for Submit

source§

const EVENT_TYPE: &'static str = "submit"

source§

impl StaticEvent for TouchCancel

source§

const EVENT_TYPE: &'static str = "touchcancel"

source§

impl StaticEvent for TouchEnd

source§

const EVENT_TYPE: &'static str = "touchend"

source§

impl StaticEvent for TouchMove

source§

const EVENT_TYPE: &'static str = "touchmove"

source§

impl StaticEvent for TouchStart

source§

const EVENT_TYPE: &'static str = "touchstart"

source§

impl StaticEvent for Wheel

source§

const EVENT_TYPE: &'static str = "wheel"