Trait script::dom::bindings::codegen::Bindings::TestWorkletBinding::TestWorklet_Binding::TestWorkletMethods
source · pub trait TestWorkletMethods {
// Required methods
fn AddModule(
&self,
moduleURL: USVString,
options: &WorkletOptions,
_comp: InRealm<'_>,
_can_gc: CanGc,
) -> Rc<Promise>;
fn Lookup(&self, key: DOMString) -> Option<DOMString>;
fn Constructor(
global: &Window,
proto: Option<HandleObject<'_>>,
can_gc: CanGc,
) -> Result<Root<Dom<TestWorklet>>, Error>;
}
Required Methods§
fn AddModule( &self, moduleURL: USVString, options: &WorkletOptions, _comp: InRealm<'_>, _can_gc: CanGc, ) -> Rc<Promise>
fn Lookup(&self, key: DOMString) -> Option<DOMString>
fn Constructor( global: &Window, proto: Option<HandleObject<'_>>, can_gc: CanGc, ) -> Result<Root<Dom<TestWorklet>>, Error>
Object Safety§
This trait is not object safe.