Skip to main content

CustomEventMethods

pub trait CustomEventMethods<D: DomTypes> {
    // Required methods
    fn Detail(&self, retval: MutableHandle<'_, Value>);
    fn InitCustomEvent(
        &self,
        type_: DOMString,
        bubbles: bool,
        cancelable: bool,
        detail: HandleValue<'_>,
    );
    fn IsTrusted(&self) -> bool;
    fn Constructor(
        cx: &mut JSContext,
        global: &D::GlobalScope,
        proto: Option<HandleObject<'_>>,
        type_: DOMString,
        eventInitDict: RootedTraceableBox<CustomEventInit>,
    ) -> DomRoot<D::CustomEvent>;
}

Required Methods§

Source

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

Source

fn InitCustomEvent( &self, type_: DOMString, bubbles: bool, cancelable: bool, detail: HandleValue<'_>, )

Source

fn IsTrusted(&self) -> bool

Source

fn Constructor( cx: &mut JSContext, global: &D::GlobalScope, proto: Option<HandleObject<'_>>, type_: DOMString, eventInitDict: RootedTraceableBox<CustomEventInit>, ) -> DomRoot<D::CustomEvent>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§