Trait script::dom::bindings::codegen::Bindings::ExtendableMessageEventBinding::ExtendableMessageEvent_Binding::ExtendableMessageEventMethods
source · pub trait ExtendableMessageEventMethods {
// 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: &ServiceWorkerGlobalScope,
proto: Option<HandleObject<'_>>,
can_gc: CanGc,
type_: DOMString,
eventInitDict: RootedTraceableBox<ExtendableMessageEventInit>,
) -> Result<Root<Dom<ExtendableMessageEvent>>, Error>;
}
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: &ServiceWorkerGlobalScope, proto: Option<HandleObject<'_>>, can_gc: CanGc, type_: DOMString, eventInitDict: RootedTraceableBox<ExtendableMessageEventInit>, ) -> Result<Root<Dom<ExtendableMessageEvent>>, Error>
Object Safety§
This trait is not object safe.