script::dom::bindings::codegen::Bindings::CustomEventBinding

Trait CustomEventMethods

Source
pub(crate) trait CustomEventMethods<D>
where D: DomTypes,
{ // Required methods fn Detail(&self, cx: JSContext, retval: MutableHandle<'_, Value>); fn InitCustomEvent( &self, cx: JSContext, type_: DOMString, bubbles: bool, cancelable: bool, detail: Handle<'_, Value>, ); fn IsTrusted(&self) -> bool; fn Constructor( global: &<D as DomTypes>::GlobalScope, proto: Option<Handle<'_, *mut JSObject>>, can_gc: CanGc, type_: DOMString, eventInitDict: RootedTraceableBox<CustomEventInit>, ) -> Root<Dom<<D as DomTypes>::CustomEvent>>; }

Required Methods§

Source

fn Detail(&self, cx: JSContext, retval: MutableHandle<'_, Value>)

Source

fn InitCustomEvent( &self, cx: JSContext, type_: DOMString, bubbles: bool, cancelable: bool, detail: Handle<'_, Value>, )

Source

fn IsTrusted(&self) -> bool

Source

fn Constructor( global: &<D as DomTypes>::GlobalScope, proto: Option<Handle<'_, *mut JSObject>>, can_gc: CanGc, type_: DOMString, eventInitDict: RootedTraceableBox<CustomEventInit>, ) -> Root<Dom<<D as DomTypes>::CustomEvent>>

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§