web_sys/features/
gen_Worklet.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#![allow(unused_imports)]
#![allow(clippy::all)]
use super::*;
use wasm_bindgen::prelude::*;
#[wasm_bindgen]
extern "C" {
    # [wasm_bindgen (extends = :: js_sys :: Object , js_name = Worklet , typescript_type = "Worklet")]
    #[derive(Debug, Clone, PartialEq, Eq)]
    #[doc = "The `Worklet` class."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Worklet)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `Worklet`*"]
    pub type Worklet;
    # [wasm_bindgen (catch , method , structural , js_class = "Worklet" , js_name = addModule)]
    #[doc = "The `addModule()` method."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Worklet/addModule)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `Worklet`*"]
    pub fn add_module(this: &Worklet, module_url: &str) -> Result<::js_sys::Promise, JsValue>;
    #[cfg(feature = "WorkletOptions")]
    # [wasm_bindgen (catch , method , structural , js_class = "Worklet" , js_name = addModule)]
    #[doc = "The `addModule()` method."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Worklet/addModule)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `Worklet`, `WorkletOptions`*"]
    pub fn add_module_with_options(
        this: &Worklet,
        module_url: &str,
        options: &WorkletOptions,
    ) -> Result<::js_sys::Promise, JsValue>;
}