pub(crate) trait ExtendableEventMethods<D: DomTypes> {
    // Required methods
    fn WaitUntil(&self, cx: SafeJSContext, f: HandleValue<'_>) -> Fallible<()>;
    fn IsTrusted(&self) -> bool;
    fn Constructor(
        global: &D::ServiceWorkerGlobalScope,
        proto: Option<HandleObject<'_>>,
        can_gc: CanGc,
        type_: DOMString,
        eventInitDict: &ExtendableEventInit,
    ) -> Fallible<DomRoot<D::ExtendableEvent>>;
}

Required Methods§

Source

fn WaitUntil(&self, cx: SafeJSContext, f: HandleValue<'_>) -> Fallible<()>

Source

fn IsTrusted(&self) -> bool

Source

fn Constructor( global: &D::ServiceWorkerGlobalScope, proto: Option<HandleObject<'_>>, can_gc: CanGc, type_: DOMString, eventInitDict: &ExtendableEventInit, ) -> Fallible<DomRoot<D::ExtendableEvent>>

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§