web_sys/features/
gen_TaskController.rs1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[cfg(web_sys_unstable_apis)]
6#[wasm_bindgen]
7extern "C" {
8 #[wasm_bindgen(
9 extends = "AbortController",
10 extends = "::js_sys::Object",
11 js_name = "TaskController",
12 typescript_type = "TaskController"
13 )]
14 #[derive(Debug, Clone, PartialEq, Eq)]
15 #[doc = "The `TaskController` class."]
16 #[doc = ""]
17 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TaskController)"]
18 #[doc = ""]
19 #[doc = "*This API requires the following crate features to be activated: `TaskController`*"]
20 #[doc = ""]
21 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
22 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
23 pub type TaskController;
24 #[cfg(web_sys_unstable_apis)]
25 #[wasm_bindgen(catch, constructor, js_class = "TaskController")]
26 #[doc = "The `new TaskController(..)` constructor, creating a new instance of `TaskController`."]
27 #[doc = ""]
28 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TaskController/TaskController)"]
29 #[doc = ""]
30 #[doc = "*This API requires the following crate features to be activated: `TaskController`*"]
31 #[doc = ""]
32 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
33 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
34 pub fn new() -> Result<TaskController, JsValue>;
35 #[cfg(web_sys_unstable_apis)]
36 #[cfg(feature = "TaskControllerInit")]
37 #[wasm_bindgen(catch, constructor, js_class = "TaskController")]
38 #[doc = "The `new TaskController(..)` constructor, creating a new instance of `TaskController`."]
39 #[doc = ""]
40 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TaskController/TaskController)"]
41 #[doc = ""]
42 #[doc = "*This API requires the following crate features to be activated: `TaskController`, `TaskControllerInit`*"]
43 #[doc = ""]
44 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
45 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
46 pub fn new_with_init(init: &TaskControllerInit) -> Result<TaskController, JsValue>;
47 #[cfg(web_sys_unstable_apis)]
48 #[cfg(feature = "TaskPriority")]
49 #[wasm_bindgen(catch, method, js_class = "TaskController", js_name = "setPriority")]
50 #[doc = "The `setPriority()` method."]
51 #[doc = ""]
52 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TaskController/setPriority)"]
53 #[doc = ""]
54 #[doc = "*This API requires the following crate features to be activated: `TaskController`, `TaskPriority`*"]
55 #[doc = ""]
56 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
57 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
58 pub fn set_priority(this: &TaskController, priority: TaskPriority) -> Result<(), JsValue>;
59}