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§

source

fn AddModule( &self, moduleURL: USVString, options: &WorkletOptions, _comp: InRealm<'_>, _can_gc: CanGc, ) -> Rc<Promise>

source

fn Lookup(&self, key: DOMString) -> Option<DOMString>

source

fn Constructor( global: &Window, proto: Option<HandleObject<'_>>, can_gc: CanGc, ) -> Result<Root<Dom<TestWorklet>>, Error>

Object Safety§

This trait is not object safe.

Implementors§