sycamore::web::events

Trait EventDescriptor

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

    const NAME: &'static str;
}
Expand description

Description of a type of event.

Required Associated Constants§

const NAME: &'static str

The name of the event.

Required Associated Types§

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§

§

impl EventDescriptor for DOMContentLoaded

§

const NAME: &'static str = "DOMContentLoaded"

§

type EventTy = Event

§

impl EventDescriptor for abort

§

const NAME: &'static str = "abort"

§

type EventTy = UiEvent

§

impl EventDescriptor for afterprint

§

const NAME: &'static str = "afterprint"

§

type EventTy = Event

§

impl EventDescriptor for animationcancel

§

const NAME: &'static str = "animationcancel"

§

type EventTy = AnimationEvent

§

impl EventDescriptor for animationend

§

const NAME: &'static str = "animationend"

§

type EventTy = AnimationEvent

§

impl EventDescriptor for animationiteration

§

const NAME: &'static str = "animationiteration"

§

type EventTy = AnimationEvent

§

impl EventDescriptor for animationstart

§

const NAME: &'static str = "animationstart"

§

type EventTy = AnimationEvent

§

impl EventDescriptor for auxclick

§

const NAME: &'static str = "auxclick"

§

type EventTy = MouseEvent

§

impl EventDescriptor for beforeinput

§

const NAME: &'static str = "beforeinput"

§

type EventTy = InputEvent

§

impl EventDescriptor for beforeprint

§

const NAME: &'static str = "beforeprint"

§

type EventTy = Event

§

impl EventDescriptor for beforeunload

§

const NAME: &'static str = "beforeunload"

§

type EventTy = BeforeUnloadEvent

§

impl EventDescriptor for blur

§

const NAME: &'static str = "blur"

§

type EventTy = FocusEvent

§

impl EventDescriptor for canplay

§

const NAME: &'static str = "canplay"

§

type EventTy = Event

§

impl EventDescriptor for canplaythrough

§

const NAME: &'static str = "canplaythrough"

§

type EventTy = Event

§

impl EventDescriptor for change

§

const NAME: &'static str = "change"

§

type EventTy = Event

§

impl EventDescriptor for click

§

const NAME: &'static str = "click"

§

type EventTy = MouseEvent

§

impl EventDescriptor for close

§

const NAME: &'static str = "close"

§

type EventTy = Event

§

impl EventDescriptor for compositionend

§

const NAME: &'static str = "compositionend"

§

type EventTy = CompositionEvent

§

impl EventDescriptor for compositionstart

§

const NAME: &'static str = "compositionstart"

§

type EventTy = CompositionEvent

§

impl EventDescriptor for compositionupdate

§

const NAME: &'static str = "compositionupdate"

§

type EventTy = CompositionEvent

§

impl EventDescriptor for contextmenu

§

const NAME: &'static str = "contextmenu"

§

type EventTy = MouseEvent

§

impl EventDescriptor for copy

§

const NAME: &'static str = "copy"

§

type EventTy = Event

§

impl EventDescriptor for cuechange

§

const NAME: &'static str = "cuechange"

§

type EventTy = Event

§

impl EventDescriptor for cut

§

const NAME: &'static str = "cut"

§

type EventTy = Event

§

impl EventDescriptor for dblclick

§

const NAME: &'static str = "dblclick"

§

type EventTy = MouseEvent

§

impl EventDescriptor for devicemotion

§

const NAME: &'static str = "devicemotion"

§

type EventTy = DeviceMotionEvent

§

impl EventDescriptor for deviceorientation

§

const NAME: &'static str = "deviceorientation"

§

type EventTy = DeviceOrientationEvent

§

impl EventDescriptor for drag

§

const NAME: &'static str = "drag"

§

type EventTy = DragEvent

§

impl EventDescriptor for dragend

§

const NAME: &'static str = "dragend"

§

type EventTy = DragEvent

§

impl EventDescriptor for dragenter

§

const NAME: &'static str = "dragenter"

§

type EventTy = DragEvent

§

impl EventDescriptor for dragleave

§

const NAME: &'static str = "dragleave"

§

type EventTy = DragEvent

§

impl EventDescriptor for dragover

§

const NAME: &'static str = "dragover"

§

type EventTy = DragEvent

§

impl EventDescriptor for dragstart

§

const NAME: &'static str = "dragstart"

§

type EventTy = DragEvent

§

impl EventDescriptor for drop

§

const NAME: &'static str = "drop"

§

type EventTy = DragEvent

§

impl EventDescriptor for durationchange

§

const NAME: &'static str = "durationchange"

§

type EventTy = Event

§

impl EventDescriptor for emptied

§

const NAME: &'static str = "emptied"

§

type EventTy = Event

§

impl EventDescriptor for ended

§

const NAME: &'static str = "ended"

§

type EventTy = Event

§

impl EventDescriptor for error

§

const NAME: &'static str = "error"

§

type EventTy = ErrorEvent

§

impl EventDescriptor for focus

§

const NAME: &'static str = "focus"

§

type EventTy = FocusEvent

§

impl EventDescriptor for focusin

§

const NAME: &'static str = "focusin"

§

type EventTy = FocusEvent

§

impl EventDescriptor for focusout

§

const NAME: &'static str = "focusout"

§

type EventTy = FocusEvent

§

impl EventDescriptor for formdata

§

const NAME: &'static str = "formdata"

§

type EventTy = Event

§

impl EventDescriptor for fullscreenchange

§

const NAME: &'static str = "fullscreenchange"

§

type EventTy = Event

§

impl EventDescriptor for fullscreenerror

§

const NAME: &'static str = "fullscreenerror"

§

type EventTy = Event

§

impl EventDescriptor for gamepadconnected

§

const NAME: &'static str = "gamepadconnected"

§

type EventTy = GamepadEvent

§

impl EventDescriptor for gamepaddisconnected

§

const NAME: &'static str = "gamepaddisconnected"

§

type EventTy = GamepadEvent

§

impl EventDescriptor for gotpointercapture

§

const NAME: &'static str = "gotpointercapture"

§

type EventTy = PointerEvent

§

impl EventDescriptor for hashchange

§

const NAME: &'static str = "hashchange"

§

type EventTy = HashChangeEvent

§

impl EventDescriptor for input

§

const NAME: &'static str = "input"

§

type EventTy = Event

§

impl EventDescriptor for invalid

§

const NAME: &'static str = "invalid"

§

type EventTy = Event

§

impl EventDescriptor for keydown

§

const NAME: &'static str = "keydown"

§

type EventTy = KeyboardEvent

§

impl EventDescriptor for keypress

§

const NAME: &'static str = "keypress"

§

type EventTy = KeyboardEvent

§

impl EventDescriptor for keyup

§

const NAME: &'static str = "keyup"

§

type EventTy = KeyboardEvent

§

impl EventDescriptor for languagechange

§

const NAME: &'static str = "languagechange"

§

type EventTy = Event

§

impl EventDescriptor for load

§

const NAME: &'static str = "load"

§

type EventTy = Event

§

impl EventDescriptor for loadeddata

§

const NAME: &'static str = "loadeddata"

§

type EventTy = Event

§

impl EventDescriptor for loadedmetadata

§

const NAME: &'static str = "loadedmetadata"

§

type EventTy = Event

§

impl EventDescriptor for loadstart

§

const NAME: &'static str = "loadstart"

§

type EventTy = Event

§

impl EventDescriptor for lostpointercapture

§

const NAME: &'static str = "lostpointercapture"

§

type EventTy = PointerEvent

§

impl EventDescriptor for message

§

const NAME: &'static str = "message"

§

type EventTy = MessageEvent

§

impl EventDescriptor for messageerror

§

const NAME: &'static str = "messageerror"

§

type EventTy = MessageEvent

§

impl EventDescriptor for mousedown

§

const NAME: &'static str = "mousedown"

§

type EventTy = MouseEvent

§

impl EventDescriptor for mouseenter

§

const NAME: &'static str = "mouseenter"

§

type EventTy = MouseEvent

§

impl EventDescriptor for mouseleave

§

const NAME: &'static str = "mouseleave"

§

type EventTy = MouseEvent

§

impl EventDescriptor for mousemove

§

const NAME: &'static str = "mousemove"

§

type EventTy = MouseEvent

§

impl EventDescriptor for mouseout

§

const NAME: &'static str = "mouseout"

§

type EventTy = MouseEvent

§

impl EventDescriptor for mouseover

§

const NAME: &'static str = "mouseover"

§

type EventTy = MouseEvent

§

impl EventDescriptor for mouseup

§

const NAME: &'static str = "mouseup"

§

type EventTy = MouseEvent

§

impl EventDescriptor for offline

§

const NAME: &'static str = "offline"

§

type EventTy = Event

§

impl EventDescriptor for online

§

const NAME: &'static str = "online"

§

type EventTy = Event

§

impl EventDescriptor for orientationchange

§

const NAME: &'static str = "orientationchange"

§

type EventTy = Event

§

impl EventDescriptor for pagehide

§

const NAME: &'static str = "pagehide"

§

type EventTy = PageTransitionEvent

§

impl EventDescriptor for pageshow

§

const NAME: &'static str = "pageshow"

§

type EventTy = PageTransitionEvent

§

impl EventDescriptor for paste

§

const NAME: &'static str = "paste"

§

type EventTy = Event

§

impl EventDescriptor for pause

§

const NAME: &'static str = "pause"

§

type EventTy = Event

§

impl EventDescriptor for play

§

const NAME: &'static str = "play"

§

type EventTy = Event

§

impl EventDescriptor for playing

§

const NAME: &'static str = "playing"

§

type EventTy = Event

§

impl EventDescriptor for pointercancel

§

const NAME: &'static str = "pointercancel"

§

type EventTy = PointerEvent

§

impl EventDescriptor for pointerdown

§

const NAME: &'static str = "pointerdown"

§

type EventTy = PointerEvent

§

impl EventDescriptor for pointerenter

§

const NAME: &'static str = "pointerenter"

§

type EventTy = PointerEvent

§

impl EventDescriptor for pointerleave

§

const NAME: &'static str = "pointerleave"

§

type EventTy = PointerEvent

§

impl EventDescriptor for pointerlockchange

§

const NAME: &'static str = "pointerlockchange"

§

type EventTy = Event

§

impl EventDescriptor for pointerlockerror

§

const NAME: &'static str = "pointerlockerror"

§

type EventTy = Event

§

impl EventDescriptor for pointermove

§

const NAME: &'static str = "pointermove"

§

type EventTy = PointerEvent

§

impl EventDescriptor for pointerout

§

const NAME: &'static str = "pointerout"

§

type EventTy = PointerEvent

§

impl EventDescriptor for pointerover

§

const NAME: &'static str = "pointerover"

§

type EventTy = PointerEvent

§

impl EventDescriptor for pointerup

§

const NAME: &'static str = "pointerup"

§

type EventTy = PointerEvent

§

impl EventDescriptor for popstate

§

const NAME: &'static str = "popstate"

§

type EventTy = PopStateEvent

§

impl EventDescriptor for progress

§

const NAME: &'static str = "progress"

§

type EventTy = ProgressEvent

§

impl EventDescriptor for ratechange

§

const NAME: &'static str = "ratechange"

§

type EventTy = Event

§

impl EventDescriptor for readystatechange

§

const NAME: &'static str = "readystatechange"

§

type EventTy = Event

§

impl EventDescriptor for rejectionhandled

§

const NAME: &'static str = "rejectionhandled"

§

type EventTy = PromiseRejectionEvent

§

impl EventDescriptor for reset

§

const NAME: &'static str = "reset"

§

type EventTy = Event

§

impl EventDescriptor for resize

§

const NAME: &'static str = "resize"

§

type EventTy = UiEvent

§

impl EventDescriptor for scroll

§

const NAME: &'static str = "scroll"

§

type EventTy = Event

§

impl EventDescriptor for securitypolicyviolation

§

const NAME: &'static str = "securitypolicyviolation"

§

type EventTy = SecurityPolicyViolationEvent

§

impl EventDescriptor for seeked

§

const NAME: &'static str = "seeked"

§

type EventTy = Event

§

impl EventDescriptor for seeking

§

const NAME: &'static str = "seeking"

§

type EventTy = Event

§

impl EventDescriptor for select

§

const NAME: &'static str = "select"

§

type EventTy = Event

§

impl EventDescriptor for selectionchange

§

const NAME: &'static str = "selectionchange"

§

type EventTy = Event

§

impl EventDescriptor for selectstart

§

const NAME: &'static str = "selectstart"

§

type EventTy = Event

§

impl EventDescriptor for slotchange

§

const NAME: &'static str = "slotchange"

§

type EventTy = Event

§

impl EventDescriptor for stalled

§

const NAME: &'static str = "stalled"

§

type EventTy = Event

§

impl EventDescriptor for storage

§

const NAME: &'static str = "storage"

§

type EventTy = StorageEvent

§

impl EventDescriptor for submit

§

const NAME: &'static str = "submit"

§

type EventTy = SubmitEvent

§

impl EventDescriptor for suspend

§

const NAME: &'static str = "suspend"

§

type EventTy = Event

§

impl EventDescriptor for timeupdate

§

const NAME: &'static str = "timeupdate"

§

type EventTy = Event

§

impl EventDescriptor for toggle

§

const NAME: &'static str = "toggle"

§

type EventTy = Event

§

impl EventDescriptor for touchcancel

§

const NAME: &'static str = "touchcancel"

§

type EventTy = TouchEvent

§

impl EventDescriptor for touchend

§

const NAME: &'static str = "touchend"

§

type EventTy = TouchEvent

§

impl EventDescriptor for touchmove

§

const NAME: &'static str = "touchmove"

§

type EventTy = TouchEvent

§

impl EventDescriptor for touchstart

§

const NAME: &'static str = "touchstart"

§

type EventTy = TouchEvent

§

impl EventDescriptor for transitioncancel

§

const NAME: &'static str = "transitioncancel"

§

type EventTy = TransitionEvent

§

impl EventDescriptor for transitionend

§

const NAME: &'static str = "transitionend"

§

type EventTy = TransitionEvent

§

impl EventDescriptor for transitionrun

§

const NAME: &'static str = "transitionrun"

§

type EventTy = TransitionEvent

§

impl EventDescriptor for transitionstart

§

const NAME: &'static str = "transitionstart"

§

type EventTy = TransitionEvent

§

impl EventDescriptor for unhandledrejection

§

const NAME: &'static str = "unhandledrejection"

§

type EventTy = PromiseRejectionEvent

§

impl EventDescriptor for unload

§

const NAME: &'static str = "unload"

§

type EventTy = Event

§

impl EventDescriptor for visibilitychange

§

const NAME: &'static str = "visibilitychange"

§

type EventTy = Event

§

impl EventDescriptor for volumechange

§

const NAME: &'static str = "volumechange"

§

type EventTy = Event

§

impl EventDescriptor for waiting

§

const NAME: &'static str = "waiting"

§

type EventTy = Event

§

impl EventDescriptor for webkitanimationend

§

const NAME: &'static str = "webkitanimationend"

§

type EventTy = Event

§

impl EventDescriptor for webkitanimationiteration

§

const NAME: &'static str = "webkitanimationiteration"

§

type EventTy = Event

§

impl EventDescriptor for webkitanimationstart

§

const NAME: &'static str = "webkitanimationstart"

§

type EventTy = Event

§

impl EventDescriptor for webkittransitionend

§

const NAME: &'static str = "webkittransitionend"

§

type EventTy = Event

§

impl EventDescriptor for wheel

§

const NAME: &'static str = "wheel"

§

type EventTy = WheelEvent