Trait script::dom::bindings::codegen::Bindings::ExtendableEventBinding::ExtendableEvent_Binding::ExtendableEventMethods
source · pub trait ExtendableEventMethods {
// Required methods
fn WaitUntil(
&self,
cx: SafeJSContext,
f: HandleValue<'_>,
) -> Result<(), Error>;
fn IsTrusted(&self) -> bool;
fn Constructor(
global: &ServiceWorkerGlobalScope,
proto: Option<HandleObject<'_>>,
can_gc: CanGc,
type_: DOMString,
eventInitDict: &ExtendableEventInit,
) -> Result<Root<Dom<ExtendableEvent>>, Error>;
}
Required Methods§
fn WaitUntil(&self, cx: SafeJSContext, f: HandleValue<'_>) -> Result<(), Error>
fn IsTrusted(&self) -> bool
fn Constructor( global: &ServiceWorkerGlobalScope, proto: Option<HandleObject<'_>>, can_gc: CanGc, type_: DOMString, eventInitDict: &ExtendableEventInit, ) -> Result<Root<Dom<ExtendableEvent>>, Error>
Object Safety§
This trait is not object safe.