pub trait ExtendableMessageEventMethods<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::ServiceWorkerGlobalScope,
proto: Option<HandleObject<'_>>,
type_: DOMString,
eventInitDict: RootedTraceableBox<ExtendableMessageEventInit<D>>,
) -> Fallible<DomRoot<D::ExtendableMessageEvent>>;
}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::ServiceWorkerGlobalScope, proto: Option<HandleObject<'_>>, type_: DOMString, eventInitDict: RootedTraceableBox<ExtendableMessageEventInit<D>>, ) -> Fallible<DomRoot<D::ExtendableMessageEvent>>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".