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