web_sys/features/
gen_TaskSignal.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 = "AbortSignal",
10 extends = "EventTarget",
11 extends = "::js_sys::Object",
12 js_name = "TaskSignal",
13 typescript_type = "TaskSignal"
14 )]
15 #[derive(Debug, Clone, PartialEq, Eq)]
16 #[doc = "The `TaskSignal` class."]
17 #[doc = ""]
18 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TaskSignal)"]
19 #[doc = ""]
20 #[doc = "*This API requires the following crate features to be activated: `TaskSignal`*"]
21 #[doc = ""]
22 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
23 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
24 pub type TaskSignal;
25 #[cfg(web_sys_unstable_apis)]
26 #[cfg(feature = "TaskPriority")]
27 #[wasm_bindgen(method, getter, js_class = "TaskSignal", js_name = "priority")]
28 #[doc = "Getter for the `priority` field of this object."]
29 #[doc = ""]
30 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TaskSignal/priority)"]
31 #[doc = ""]
32 #[doc = "*This API requires the following crate features to be activated: `TaskPriority`, `TaskSignal`*"]
33 #[doc = ""]
34 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
35 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
36 pub fn priority(this: &TaskSignal) -> TaskPriority;
37 #[cfg(web_sys_unstable_apis)]
38 #[wasm_bindgen(method, getter, js_class = "TaskSignal", js_name = "onprioritychange")]
39 #[doc = "Getter for the `onprioritychange` field of this object."]
40 #[doc = ""]
41 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TaskSignal/onprioritychange)"]
42 #[doc = ""]
43 #[doc = "*This API requires the following crate features to be activated: `TaskSignal`*"]
44 #[doc = ""]
45 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
46 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
47 pub fn onprioritychange(this: &TaskSignal) -> Option<::js_sys::Function>;
48 #[cfg(web_sys_unstable_apis)]
49 #[wasm_bindgen(method, setter, js_class = "TaskSignal", js_name = "onprioritychange")]
50 #[doc = "Setter for the `onprioritychange` field of this object."]
51 #[doc = ""]
52 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TaskSignal/onprioritychange)"]
53 #[doc = ""]
54 #[doc = "*This API requires the following crate features to be activated: `TaskSignal`*"]
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_onprioritychange(this: &TaskSignal, value: Option<&::js_sys::Function>);
59 #[cfg(web_sys_unstable_apis)]
60 #[wasm_bindgen(static_method_of = "TaskSignal", js_class = "TaskSignal")]
61 #[doc = "The `any()` method."]
62 #[doc = ""]
63 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TaskSignal/any_static)"]
64 #[doc = ""]
65 #[doc = "*This API requires the following crate features to be activated: `TaskSignal`*"]
66 #[doc = ""]
67 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
68 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
69 pub fn any(signals: &[AbortSignal]) -> TaskSignal;
70 #[cfg(web_sys_unstable_apis)]
71 #[cfg(feature = "TaskSignalAnyInit")]
72 #[wasm_bindgen(
73 static_method_of = "TaskSignal",
74 js_class = "TaskSignal",
75 js_name = "any"
76 )]
77 #[doc = "The `any()` method."]
78 #[doc = ""]
79 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TaskSignal/any_static)"]
80 #[doc = ""]
81 #[doc = "*This API requires the following crate features to be activated: `TaskSignal`, `TaskSignalAnyInit`*"]
82 #[doc = ""]
83 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
84 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
85 pub fn any_with_init(signals: &[AbortSignal], init: &TaskSignalAnyInit) -> TaskSignal;
86}