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