Trait EventDescriptor

Source
pub trait EventDescriptor {
    type EventTy: Into<Event> + JsCast;

    const NAME: &'static str;
}
Expand description

Description of a type of event.

Required Associated Constants§

Source

const NAME: &'static str

The name of the event.

Required Associated Types§

Source

type EventTy: Into<Event> + JsCast

The JS type of the event data that is passed to the event handler.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl EventDescriptor for DOMContentLoaded

Source§

const NAME: &'static str = "DOMContentLoaded"

Source§

type EventTy = Event

Source§

impl EventDescriptor for abort

Source§

const NAME: &'static str = "abort"

Source§

type EventTy = UiEvent

Source§

impl EventDescriptor for afterprint

Source§

const NAME: &'static str = "afterprint"

Source§

type EventTy = Event

Source§

impl EventDescriptor for animationcancel

Source§

const NAME: &'static str = "animationcancel"

Source§

type EventTy = AnimationEvent

Source§

impl EventDescriptor for animationend

Source§

const NAME: &'static str = "animationend"

Source§

type EventTy = AnimationEvent

Source§

impl EventDescriptor for animationiteration

Source§

const NAME: &'static str = "animationiteration"

Source§

type EventTy = AnimationEvent

Source§

impl EventDescriptor for animationstart

Source§

const NAME: &'static str = "animationstart"

Source§

type EventTy = AnimationEvent

Source§

impl EventDescriptor for auxclick

Source§

const NAME: &'static str = "auxclick"

Source§

type EventTy = MouseEvent

Source§

impl EventDescriptor for beforeinput

Source§

const NAME: &'static str = "beforeinput"

Source§

type EventTy = InputEvent

Source§

impl EventDescriptor for beforeprint

Source§

const NAME: &'static str = "beforeprint"

Source§

type EventTy = Event

Source§

impl EventDescriptor for beforeunload

Source§

const NAME: &'static str = "beforeunload"

Source§

type EventTy = BeforeUnloadEvent

Source§

impl EventDescriptor for blur

Source§

const NAME: &'static str = "blur"

Source§

type EventTy = FocusEvent

Source§

impl EventDescriptor for canplay

Source§

const NAME: &'static str = "canplay"

Source§

type EventTy = Event

Source§

impl EventDescriptor for canplaythrough

Source§

const NAME: &'static str = "canplaythrough"

Source§

type EventTy = Event

Source§

impl EventDescriptor for change

Source§

const NAME: &'static str = "change"

Source§

type EventTy = Event

Source§

impl EventDescriptor for click

Source§

const NAME: &'static str = "click"

Source§

type EventTy = MouseEvent

Source§

impl EventDescriptor for close

Source§

const NAME: &'static str = "close"

Source§

type EventTy = Event

Source§

impl EventDescriptor for compositionend

Source§

const NAME: &'static str = "compositionend"

Source§

type EventTy = CompositionEvent

Source§

impl EventDescriptor for compositionstart

Source§

const NAME: &'static str = "compositionstart"

Source§

type EventTy = CompositionEvent

Source§

impl EventDescriptor for compositionupdate

Source§

const NAME: &'static str = "compositionupdate"

Source§

type EventTy = CompositionEvent

Source§

impl EventDescriptor for contextmenu

Source§

const NAME: &'static str = "contextmenu"

Source§

type EventTy = MouseEvent

Source§

impl EventDescriptor for copy

Source§

const NAME: &'static str = "copy"

Source§

type EventTy = Event

Source§

impl EventDescriptor for cuechange

Source§

const NAME: &'static str = "cuechange"

Source§

type EventTy = Event

Source§

impl EventDescriptor for cut

Source§

const NAME: &'static str = "cut"

Source§

type EventTy = Event

Source§

impl EventDescriptor for dblclick

Source§

const NAME: &'static str = "dblclick"

Source§

type EventTy = MouseEvent

Source§

impl EventDescriptor for devicemotion

Source§

const NAME: &'static str = "devicemotion"

Source§

type EventTy = DeviceMotionEvent

Source§

impl EventDescriptor for deviceorientation

Source§

const NAME: &'static str = "deviceorientation"

Source§

type EventTy = DeviceOrientationEvent

Source§

impl EventDescriptor for drag

Source§

const NAME: &'static str = "drag"

Source§

type EventTy = DragEvent

Source§

impl EventDescriptor for dragend

Source§

const NAME: &'static str = "dragend"

Source§

type EventTy = DragEvent

Source§

impl EventDescriptor for dragenter

Source§

const NAME: &'static str = "dragenter"

Source§

type EventTy = DragEvent

Source§

impl EventDescriptor for dragleave

Source§

const NAME: &'static str = "dragleave"

Source§

type EventTy = DragEvent

Source§

impl EventDescriptor for dragover

Source§

const NAME: &'static str = "dragover"

Source§

type EventTy = DragEvent

Source§

impl EventDescriptor for dragstart

Source§

const NAME: &'static str = "dragstart"

Source§

type EventTy = DragEvent

Source§

impl EventDescriptor for drop

Source§

const NAME: &'static str = "drop"

Source§

type EventTy = DragEvent

Source§

impl EventDescriptor for durationchange

Source§

const NAME: &'static str = "durationchange"

Source§

type EventTy = Event

Source§

impl EventDescriptor for emptied

Source§

const NAME: &'static str = "emptied"

Source§

type EventTy = Event

Source§

impl EventDescriptor for ended

Source§

const NAME: &'static str = "ended"

Source§

type EventTy = Event

Source§

impl EventDescriptor for error

Source§

const NAME: &'static str = "error"

Source§

type EventTy = ErrorEvent

Source§

impl EventDescriptor for focus

Source§

const NAME: &'static str = "focus"

Source§

type EventTy = FocusEvent

Source§

impl EventDescriptor for focusin

Source§

const NAME: &'static str = "focusin"

Source§

type EventTy = FocusEvent

Source§

impl EventDescriptor for focusout

Source§

const NAME: &'static str = "focusout"

Source§

type EventTy = FocusEvent

Source§

impl EventDescriptor for formdata

Source§

const NAME: &'static str = "formdata"

Source§

type EventTy = Event

Source§

impl EventDescriptor for fullscreenchange

Source§

const NAME: &'static str = "fullscreenchange"

Source§

type EventTy = Event

Source§

impl EventDescriptor for fullscreenerror

Source§

const NAME: &'static str = "fullscreenerror"

Source§

type EventTy = Event

Source§

impl EventDescriptor for gamepadconnected

Source§

const NAME: &'static str = "gamepadconnected"

Source§

type EventTy = GamepadEvent

Source§

impl EventDescriptor for gamepaddisconnected

Source§

const NAME: &'static str = "gamepaddisconnected"

Source§

type EventTy = GamepadEvent

Source§

impl EventDescriptor for gotpointercapture

Source§

const NAME: &'static str = "gotpointercapture"

Source§

type EventTy = PointerEvent

Source§

impl EventDescriptor for hashchange

Source§

const NAME: &'static str = "hashchange"

Source§

type EventTy = HashChangeEvent

Source§

impl EventDescriptor for input

Source§

const NAME: &'static str = "input"

Source§

type EventTy = Event

Source§

impl EventDescriptor for invalid

Source§

const NAME: &'static str = "invalid"

Source§

type EventTy = Event

Source§

impl EventDescriptor for keydown

Source§

const NAME: &'static str = "keydown"

Source§

type EventTy = KeyboardEvent

Source§

impl EventDescriptor for keypress

Source§

const NAME: &'static str = "keypress"

Source§

type EventTy = KeyboardEvent

Source§

impl EventDescriptor for keyup

Source§

const NAME: &'static str = "keyup"

Source§

type EventTy = KeyboardEvent

Source§

impl EventDescriptor for languagechange

Source§

const NAME: &'static str = "languagechange"

Source§

type EventTy = Event

Source§

impl EventDescriptor for load

Source§

const NAME: &'static str = "load"

Source§

type EventTy = Event

Source§

impl EventDescriptor for loadeddata

Source§

const NAME: &'static str = "loadeddata"

Source§

type EventTy = Event

Source§

impl EventDescriptor for loadedmetadata

Source§

const NAME: &'static str = "loadedmetadata"

Source§

type EventTy = Event

Source§

impl EventDescriptor for loadstart

Source§

const NAME: &'static str = "loadstart"

Source§

type EventTy = Event

Source§

impl EventDescriptor for lostpointercapture

Source§

const NAME: &'static str = "lostpointercapture"

Source§

type EventTy = PointerEvent

Source§

impl EventDescriptor for message

Source§

const NAME: &'static str = "message"

Source§

type EventTy = MessageEvent

Source§

impl EventDescriptor for messageerror

Source§

const NAME: &'static str = "messageerror"

Source§

type EventTy = MessageEvent

Source§

impl EventDescriptor for mousedown

Source§

const NAME: &'static str = "mousedown"

Source§

type EventTy = MouseEvent

Source§

impl EventDescriptor for mouseenter

Source§

const NAME: &'static str = "mouseenter"

Source§

type EventTy = MouseEvent

Source§

impl EventDescriptor for mouseleave

Source§

const NAME: &'static str = "mouseleave"

Source§

type EventTy = MouseEvent

Source§

impl EventDescriptor for mousemove

Source§

const NAME: &'static str = "mousemove"

Source§

type EventTy = MouseEvent

Source§

impl EventDescriptor for mouseout

Source§

const NAME: &'static str = "mouseout"

Source§

type EventTy = MouseEvent

Source§

impl EventDescriptor for mouseover

Source§

const NAME: &'static str = "mouseover"

Source§

type EventTy = MouseEvent

Source§

impl EventDescriptor for mouseup

Source§

const NAME: &'static str = "mouseup"

Source§

type EventTy = MouseEvent

Source§

impl EventDescriptor for offline

Source§

const NAME: &'static str = "offline"

Source§

type EventTy = Event

Source§

impl EventDescriptor for online

Source§

const NAME: &'static str = "online"

Source§

type EventTy = Event

Source§

impl EventDescriptor for orientationchange

Source§

const NAME: &'static str = "orientationchange"

Source§

type EventTy = Event

Source§

impl EventDescriptor for pagehide

Source§

const NAME: &'static str = "pagehide"

Source§

type EventTy = PageTransitionEvent

Source§

impl EventDescriptor for pageshow

Source§

const NAME: &'static str = "pageshow"

Source§

type EventTy = PageTransitionEvent

Source§

impl EventDescriptor for paste

Source§

const NAME: &'static str = "paste"

Source§

type EventTy = Event

Source§

impl EventDescriptor for pause

Source§

const NAME: &'static str = "pause"

Source§

type EventTy = Event

Source§

impl EventDescriptor for play

Source§

const NAME: &'static str = "play"

Source§

type EventTy = Event

Source§

impl EventDescriptor for playing

Source§

const NAME: &'static str = "playing"

Source§

type EventTy = Event

Source§

impl EventDescriptor for pointercancel

Source§

const NAME: &'static str = "pointercancel"

Source§

type EventTy = PointerEvent

Source§

impl EventDescriptor for pointerdown

Source§

const NAME: &'static str = "pointerdown"

Source§

type EventTy = PointerEvent

Source§

impl EventDescriptor for pointerenter

Source§

const NAME: &'static str = "pointerenter"

Source§

type EventTy = PointerEvent

Source§

impl EventDescriptor for pointerleave

Source§

const NAME: &'static str = "pointerleave"

Source§

type EventTy = PointerEvent

Source§

impl EventDescriptor for pointerlockchange

Source§

const NAME: &'static str = "pointerlockchange"

Source§

type EventTy = Event

Source§

impl EventDescriptor for pointerlockerror

Source§

const NAME: &'static str = "pointerlockerror"

Source§

type EventTy = Event

Source§

impl EventDescriptor for pointermove

Source§

const NAME: &'static str = "pointermove"

Source§

type EventTy = PointerEvent

Source§

impl EventDescriptor for pointerout

Source§

const NAME: &'static str = "pointerout"

Source§

type EventTy = PointerEvent

Source§

impl EventDescriptor for pointerover

Source§

const NAME: &'static str = "pointerover"

Source§

type EventTy = PointerEvent

Source§

impl EventDescriptor for pointerup

Source§

const NAME: &'static str = "pointerup"

Source§

type EventTy = PointerEvent

Source§

impl EventDescriptor for popstate

Source§

const NAME: &'static str = "popstate"

Source§

type EventTy = PopStateEvent

Source§

impl EventDescriptor for progress

Source§

const NAME: &'static str = "progress"

Source§

type EventTy = ProgressEvent

Source§

impl EventDescriptor for ratechange

Source§

const NAME: &'static str = "ratechange"

Source§

type EventTy = Event

Source§

impl EventDescriptor for readystatechange

Source§

const NAME: &'static str = "readystatechange"

Source§

type EventTy = Event

Source§

impl EventDescriptor for rejectionhandled

Source§

const NAME: &'static str = "rejectionhandled"

Source§

type EventTy = PromiseRejectionEvent

Source§

impl EventDescriptor for reset

Source§

const NAME: &'static str = "reset"

Source§

type EventTy = Event

Source§

impl EventDescriptor for resize

Source§

const NAME: &'static str = "resize"

Source§

type EventTy = UiEvent

Source§

impl EventDescriptor for scroll

Source§

const NAME: &'static str = "scroll"

Source§

type EventTy = Event

Source§

impl EventDescriptor for securitypolicyviolation

Source§

const NAME: &'static str = "securitypolicyviolation"

Source§

type EventTy = SecurityPolicyViolationEvent

Source§

impl EventDescriptor for seeked

Source§

const NAME: &'static str = "seeked"

Source§

type EventTy = Event

Source§

impl EventDescriptor for seeking

Source§

const NAME: &'static str = "seeking"

Source§

type EventTy = Event

Source§

impl EventDescriptor for select

Source§

const NAME: &'static str = "select"

Source§

type EventTy = Event

Source§

impl EventDescriptor for selectionchange

Source§

const NAME: &'static str = "selectionchange"

Source§

type EventTy = Event

Source§

impl EventDescriptor for selectstart

Source§

const NAME: &'static str = "selectstart"

Source§

type EventTy = Event

Source§

impl EventDescriptor for slotchange

Source§

const NAME: &'static str = "slotchange"

Source§

type EventTy = Event

Source§

impl EventDescriptor for stalled

Source§

const NAME: &'static str = "stalled"

Source§

type EventTy = Event

Source§

impl EventDescriptor for storage

Source§

const NAME: &'static str = "storage"

Source§

type EventTy = StorageEvent

Source§

impl EventDescriptor for submit

Source§

const NAME: &'static str = "submit"

Source§

type EventTy = SubmitEvent

Source§

impl EventDescriptor for suspend

Source§

const NAME: &'static str = "suspend"

Source§

type EventTy = Event

Source§

impl EventDescriptor for timeupdate

Source§

const NAME: &'static str = "timeupdate"

Source§

type EventTy = Event

Source§

impl EventDescriptor for toggle

Source§

const NAME: &'static str = "toggle"

Source§

type EventTy = Event

Source§

impl EventDescriptor for touchcancel

Source§

const NAME: &'static str = "touchcancel"

Source§

type EventTy = TouchEvent

Source§

impl EventDescriptor for touchend

Source§

const NAME: &'static str = "touchend"

Source§

type EventTy = TouchEvent

Source§

impl EventDescriptor for touchmove

Source§

const NAME: &'static str = "touchmove"

Source§

type EventTy = TouchEvent

Source§

impl EventDescriptor for touchstart

Source§

const NAME: &'static str = "touchstart"

Source§

type EventTy = TouchEvent

Source§

impl EventDescriptor for transitioncancel

Source§

const NAME: &'static str = "transitioncancel"

Source§

type EventTy = TransitionEvent

Source§

impl EventDescriptor for transitionend

Source§

const NAME: &'static str = "transitionend"

Source§

type EventTy = TransitionEvent

Source§

impl EventDescriptor for transitionrun

Source§

const NAME: &'static str = "transitionrun"

Source§

type EventTy = TransitionEvent

Source§

impl EventDescriptor for transitionstart

Source§

const NAME: &'static str = "transitionstart"

Source§

type EventTy = TransitionEvent

Source§

impl EventDescriptor for unhandledrejection

Source§

const NAME: &'static str = "unhandledrejection"

Source§

type EventTy = PromiseRejectionEvent

Source§

impl EventDescriptor for unload

Source§

const NAME: &'static str = "unload"

Source§

type EventTy = Event

Source§

impl EventDescriptor for visibilitychange

Source§

const NAME: &'static str = "visibilitychange"

Source§

type EventTy = Event

Source§

impl EventDescriptor for volumechange

Source§

const NAME: &'static str = "volumechange"

Source§

type EventTy = Event

Source§

impl EventDescriptor for waiting

Source§

const NAME: &'static str = "waiting"

Source§

type EventTy = Event

Source§

impl EventDescriptor for webkitanimationend

Source§

const NAME: &'static str = "webkitanimationend"

Source§

type EventTy = Event

Source§

impl EventDescriptor for webkitanimationiteration

Source§

const NAME: &'static str = "webkitanimationiteration"

Source§

type EventTy = Event

Source§

impl EventDescriptor for webkitanimationstart

Source§

const NAME: &'static str = "webkitanimationstart"

Source§

type EventTy = Event

Source§

impl EventDescriptor for webkittransitionend

Source§

const NAME: &'static str = "webkittransitionend"

Source§

type EventTy = Event

Source§

impl EventDescriptor for wheel

Source§

const NAME: &'static str = "wheel"

Source§

type EventTy = WheelEvent