web_sys/features/
gen_TaskSignalAnyInit.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 (extends = :: js_sys :: Object , js_name = TaskSignalAnyInit)]
9 #[derive(Debug, Clone, PartialEq, Eq)]
10 #[doc = "The `TaskSignalAnyInit` dictionary."]
11 #[doc = ""]
12 #[doc = "*This API requires the following crate features to be activated: `TaskSignalAnyInit`*"]
13 #[doc = ""]
14 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
15 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
16 pub type TaskSignalAnyInit;
17 #[cfg(web_sys_unstable_apis)]
18 #[cfg(feature = "TaskPriority")]
19 #[doc = "Get the `priority` field of this object."]
20 #[doc = ""]
21 #[doc = "*This API requires the following crate features to be activated: `TaskPriority`, `TaskSignalAnyInit`*"]
22 #[doc = ""]
23 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
24 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
25 #[wasm_bindgen(method, getter = "priority")]
26 pub fn get_priority(this: &TaskSignalAnyInit) -> ::wasm_bindgen::JsValue;
27 #[cfg(web_sys_unstable_apis)]
28 #[cfg(feature = "TaskPriority")]
29 #[doc = "Change the `priority` field of this object."]
30 #[doc = ""]
31 #[doc = "*This API requires the following crate features to be activated: `TaskPriority`, `TaskSignalAnyInit`*"]
32 #[doc = ""]
33 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
34 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
35 #[wasm_bindgen(method, setter = "priority")]
36 pub fn set_priority(this: &TaskSignalAnyInit, val: TaskPriority);
37 #[cfg(web_sys_unstable_apis)]
38 #[cfg(feature = "TaskSignal")]
39 #[doc = "Change the `priority` field of this object."]
40 #[doc = ""]
41 #[doc = "*This API requires the following crate features to be activated: `TaskSignal`, `TaskSignalAnyInit`*"]
42 #[doc = ""]
43 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
44 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
45 #[wasm_bindgen(method, setter = "priority")]
46 pub fn set_priority_task_signal(this: &TaskSignalAnyInit, val: &TaskSignal);
47}
48#[cfg(web_sys_unstable_apis)]
49impl TaskSignalAnyInit {
50 #[doc = "Construct a new `TaskSignalAnyInit`."]
51 #[doc = ""]
52 #[doc = "*This API requires the following crate features to be activated: `TaskSignalAnyInit`*"]
53 #[doc = ""]
54 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
55 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
56 pub fn new() -> Self {
57 #[allow(unused_mut)]
58 let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
59 ret
60 }
61 #[cfg(web_sys_unstable_apis)]
62 #[cfg(feature = "TaskPriority")]
63 #[deprecated = "Use `set_priority()` instead."]
64 pub fn priority(&mut self, val: TaskPriority) -> &mut Self {
65 self.set_priority(val);
66 self
67 }
68}
69#[cfg(web_sys_unstable_apis)]
70impl Default for TaskSignalAnyInit {
71 fn default() -> Self {
72 Self::new()
73 }
74}