pub(crate) trait ExtendableMessageEventMethods<D>where
    D: DomTypes,{
    // Required methods
    fn Data(&self, cx: JSContext, retval: MutableHandle<'_, Value>);
    fn Origin(&self) -> DOMString;
    fn LastEventId(&self) -> DOMString;
    fn Ports(
        &self,
        cx: JSContext,
        _can_gc: CanGc,
        retval: MutableHandle<'_, Value>,
    );
    fn IsTrusted(&self) -> bool;
    fn Constructor(
        global: &<D as DomTypes>::ServiceWorkerGlobalScope,
        proto: Option<Handle<'_, *mut JSObject>>,
        can_gc: CanGc,
        type_: DOMString,
        eventInitDict: RootedTraceableBox<ExtendableMessageEventInit<D>>,
    ) -> Result<Root<Dom<<D as DomTypes>::ExtendableMessageEvent>>, Error>;
}Required Methods§
fn Data(&self, cx: JSContext, retval: MutableHandle<'_, Value>)
fn Origin(&self) -> DOMString
fn LastEventId(&self) -> DOMString
fn Ports(&self, cx: JSContext, _can_gc: CanGc, retval: MutableHandle<'_, Value>)
fn IsTrusted(&self) -> bool
fn Constructor( global: &<D as DomTypes>::ServiceWorkerGlobalScope, proto: Option<Handle<'_, *mut JSObject>>, can_gc: CanGc, type_: DOMString, eventInitDict: RootedTraceableBox<ExtendableMessageEventInit<D>>, ) -> Result<Root<Dom<<D as DomTypes>::ExtendableMessageEvent>>, Error>
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.