pub(crate) trait ExtendableMessageEventMethods<D: DomTypes> {
// Required methods
fn Data(&self, cx: SafeJSContext, retval: MutableHandleValue<'_>);
fn Origin(&self) -> DOMString;
fn LastEventId(&self) -> DOMString;
fn Ports(&self, cx: SafeJSContext, retval: MutableHandleValue<'_>);
fn IsTrusted(&self) -> bool;
fn Constructor(
global: &D::ServiceWorkerGlobalScope,
proto: Option<HandleObject<'_>>,
can_gc: CanGc,
type_: DOMString,
eventInitDict: RootedTraceableBox<ExtendableMessageEventInit<D>>,
) -> Fallible<DomRoot<D::ExtendableMessageEvent>>;
}
Required Methods§
fn Data(&self, cx: SafeJSContext, retval: MutableHandleValue<'_>)
fn Origin(&self) -> DOMString
fn LastEventId(&self) -> DOMString
fn Ports(&self, cx: SafeJSContext, retval: MutableHandleValue<'_>)
fn IsTrusted(&self) -> bool
fn Constructor( global: &D::ServiceWorkerGlobalScope, proto: Option<HandleObject<'_>>, can_gc: CanGc, 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", so this trait is not object safe.