maxcountryman_web_sys/features/
gen_OfflineResourceList.rs1#![allow(unused_imports)]
2use super::*;
3use wasm_bindgen::prelude::*;
4#[wasm_bindgen]
5extern "C" {
6 # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = OfflineResourceList , typescript_type = "OfflineResourceList")]
7 #[derive(Debug, Clone, PartialEq, Eq)]
8 #[doc = "The `OfflineResourceList` class."]
9 #[doc = ""]
10 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineResourceList)"]
11 #[doc = ""]
12 #[doc = "*This API requires the following crate features to be activated: `OfflineResourceList`*"]
13 pub type OfflineResourceList;
14 # [wasm_bindgen (structural , catch , method , getter , js_class = "OfflineResourceList" , js_name = status)]
15 #[doc = "Getter for the `status` field of this object."]
16 #[doc = ""]
17 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineResourceList/status)"]
18 #[doc = ""]
19 #[doc = "*This API requires the following crate features to be activated: `OfflineResourceList`*"]
20 pub fn status(this: &OfflineResourceList) -> Result<u16, JsValue>;
21 # [wasm_bindgen (structural , method , getter , js_class = "OfflineResourceList" , js_name = onchecking)]
22 #[doc = "Getter for the `onchecking` field of this object."]
23 #[doc = ""]
24 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineResourceList/onchecking)"]
25 #[doc = ""]
26 #[doc = "*This API requires the following crate features to be activated: `OfflineResourceList`*"]
27 pub fn onchecking(this: &OfflineResourceList) -> Option<::js_sys::Function>;
28 # [wasm_bindgen (structural , method , setter , js_class = "OfflineResourceList" , js_name = onchecking)]
29 #[doc = "Setter for the `onchecking` field of this object."]
30 #[doc = ""]
31 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineResourceList/onchecking)"]
32 #[doc = ""]
33 #[doc = "*This API requires the following crate features to be activated: `OfflineResourceList`*"]
34 pub fn set_onchecking(this: &OfflineResourceList, value: Option<&::js_sys::Function>);
35 # [wasm_bindgen (structural , method , getter , js_class = "OfflineResourceList" , js_name = onerror)]
36 #[doc = "Getter for the `onerror` field of this object."]
37 #[doc = ""]
38 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineResourceList/onerror)"]
39 #[doc = ""]
40 #[doc = "*This API requires the following crate features to be activated: `OfflineResourceList`*"]
41 pub fn onerror(this: &OfflineResourceList) -> Option<::js_sys::Function>;
42 # [wasm_bindgen (structural , method , setter , js_class = "OfflineResourceList" , js_name = onerror)]
43 #[doc = "Setter for the `onerror` field of this object."]
44 #[doc = ""]
45 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineResourceList/onerror)"]
46 #[doc = ""]
47 #[doc = "*This API requires the following crate features to be activated: `OfflineResourceList`*"]
48 pub fn set_onerror(this: &OfflineResourceList, value: Option<&::js_sys::Function>);
49 # [wasm_bindgen (structural , method , getter , js_class = "OfflineResourceList" , js_name = onnoupdate)]
50 #[doc = "Getter for the `onnoupdate` field of this object."]
51 #[doc = ""]
52 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineResourceList/onnoupdate)"]
53 #[doc = ""]
54 #[doc = "*This API requires the following crate features to be activated: `OfflineResourceList`*"]
55 pub fn onnoupdate(this: &OfflineResourceList) -> Option<::js_sys::Function>;
56 # [wasm_bindgen (structural , method , setter , js_class = "OfflineResourceList" , js_name = onnoupdate)]
57 #[doc = "Setter for the `onnoupdate` field of this object."]
58 #[doc = ""]
59 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineResourceList/onnoupdate)"]
60 #[doc = ""]
61 #[doc = "*This API requires the following crate features to be activated: `OfflineResourceList`*"]
62 pub fn set_onnoupdate(this: &OfflineResourceList, value: Option<&::js_sys::Function>);
63 # [wasm_bindgen (structural , method , getter , js_class = "OfflineResourceList" , js_name = ondownloading)]
64 #[doc = "Getter for the `ondownloading` field of this object."]
65 #[doc = ""]
66 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineResourceList/ondownloading)"]
67 #[doc = ""]
68 #[doc = "*This API requires the following crate features to be activated: `OfflineResourceList`*"]
69 pub fn ondownloading(this: &OfflineResourceList) -> Option<::js_sys::Function>;
70 # [wasm_bindgen (structural , method , setter , js_class = "OfflineResourceList" , js_name = ondownloading)]
71 #[doc = "Setter for the `ondownloading` field of this object."]
72 #[doc = ""]
73 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineResourceList/ondownloading)"]
74 #[doc = ""]
75 #[doc = "*This API requires the following crate features to be activated: `OfflineResourceList`*"]
76 pub fn set_ondownloading(this: &OfflineResourceList, value: Option<&::js_sys::Function>);
77 # [wasm_bindgen (structural , method , getter , js_class = "OfflineResourceList" , js_name = onprogress)]
78 #[doc = "Getter for the `onprogress` field of this object."]
79 #[doc = ""]
80 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineResourceList/onprogress)"]
81 #[doc = ""]
82 #[doc = "*This API requires the following crate features to be activated: `OfflineResourceList`*"]
83 pub fn onprogress(this: &OfflineResourceList) -> Option<::js_sys::Function>;
84 # [wasm_bindgen (structural , method , setter , js_class = "OfflineResourceList" , js_name = onprogress)]
85 #[doc = "Setter for the `onprogress` field of this object."]
86 #[doc = ""]
87 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineResourceList/onprogress)"]
88 #[doc = ""]
89 #[doc = "*This API requires the following crate features to be activated: `OfflineResourceList`*"]
90 pub fn set_onprogress(this: &OfflineResourceList, value: Option<&::js_sys::Function>);
91 # [wasm_bindgen (structural , method , getter , js_class = "OfflineResourceList" , js_name = onupdateready)]
92 #[doc = "Getter for the `onupdateready` field of this object."]
93 #[doc = ""]
94 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineResourceList/onupdateready)"]
95 #[doc = ""]
96 #[doc = "*This API requires the following crate features to be activated: `OfflineResourceList`*"]
97 pub fn onupdateready(this: &OfflineResourceList) -> Option<::js_sys::Function>;
98 # [wasm_bindgen (structural , method , setter , js_class = "OfflineResourceList" , js_name = onupdateready)]
99 #[doc = "Setter for the `onupdateready` field of this object."]
100 #[doc = ""]
101 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineResourceList/onupdateready)"]
102 #[doc = ""]
103 #[doc = "*This API requires the following crate features to be activated: `OfflineResourceList`*"]
104 pub fn set_onupdateready(this: &OfflineResourceList, value: Option<&::js_sys::Function>);
105 # [wasm_bindgen (structural , method , getter , js_class = "OfflineResourceList" , js_name = oncached)]
106 #[doc = "Getter for the `oncached` field of this object."]
107 #[doc = ""]
108 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineResourceList/oncached)"]
109 #[doc = ""]
110 #[doc = "*This API requires the following crate features to be activated: `OfflineResourceList`*"]
111 pub fn oncached(this: &OfflineResourceList) -> Option<::js_sys::Function>;
112 # [wasm_bindgen (structural , method , setter , js_class = "OfflineResourceList" , js_name = oncached)]
113 #[doc = "Setter for the `oncached` field of this object."]
114 #[doc = ""]
115 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineResourceList/oncached)"]
116 #[doc = ""]
117 #[doc = "*This API requires the following crate features to be activated: `OfflineResourceList`*"]
118 pub fn set_oncached(this: &OfflineResourceList, value: Option<&::js_sys::Function>);
119 # [wasm_bindgen (structural , method , getter , js_class = "OfflineResourceList" , js_name = onobsolete)]
120 #[doc = "Getter for the `onobsolete` field of this object."]
121 #[doc = ""]
122 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineResourceList/onobsolete)"]
123 #[doc = ""]
124 #[doc = "*This API requires the following crate features to be activated: `OfflineResourceList`*"]
125 pub fn onobsolete(this: &OfflineResourceList) -> Option<::js_sys::Function>;
126 # [wasm_bindgen (structural , method , setter , js_class = "OfflineResourceList" , js_name = onobsolete)]
127 #[doc = "Setter for the `onobsolete` field of this object."]
128 #[doc = ""]
129 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineResourceList/onobsolete)"]
130 #[doc = ""]
131 #[doc = "*This API requires the following crate features to be activated: `OfflineResourceList`*"]
132 pub fn set_onobsolete(this: &OfflineResourceList, value: Option<&::js_sys::Function>);
133 # [wasm_bindgen (catch , method , structural , js_class = "OfflineResourceList" , js_name = swapCache)]
134 #[doc = "The `swapCache()` method."]
135 #[doc = ""]
136 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineResourceList/swapCache)"]
137 #[doc = ""]
138 #[doc = "*This API requires the following crate features to be activated: `OfflineResourceList`*"]
139 pub fn swap_cache(this: &OfflineResourceList) -> Result<(), JsValue>;
140 # [wasm_bindgen (catch , method , structural , js_class = "OfflineResourceList" , js_name = update)]
141 #[doc = "The `update()` method."]
142 #[doc = ""]
143 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineResourceList/update)"]
144 #[doc = ""]
145 #[doc = "*This API requires the following crate features to be activated: `OfflineResourceList`*"]
146 pub fn update(this: &OfflineResourceList) -> Result<(), JsValue>;
147}
148impl OfflineResourceList {
149 #[doc = "The `OfflineResourceList.UNCACHED` const."]
150 #[doc = ""]
151 #[doc = "*This API requires the following crate features to be activated: `OfflineResourceList`*"]
152 pub const UNCACHED: u16 = 0i64 as u16;
153 #[doc = "The `OfflineResourceList.IDLE` const."]
154 #[doc = ""]
155 #[doc = "*This API requires the following crate features to be activated: `OfflineResourceList`*"]
156 pub const IDLE: u16 = 1u64 as u16;
157 #[doc = "The `OfflineResourceList.CHECKING` const."]
158 #[doc = ""]
159 #[doc = "*This API requires the following crate features to be activated: `OfflineResourceList`*"]
160 pub const CHECKING: u16 = 2u64 as u16;
161 #[doc = "The `OfflineResourceList.DOWNLOADING` const."]
162 #[doc = ""]
163 #[doc = "*This API requires the following crate features to be activated: `OfflineResourceList`*"]
164 pub const DOWNLOADING: u16 = 3u64 as u16;
165 #[doc = "The `OfflineResourceList.UPDATEREADY` const."]
166 #[doc = ""]
167 #[doc = "*This API requires the following crate features to be activated: `OfflineResourceList`*"]
168 pub const UPDATEREADY: u16 = 4u64 as u16;
169 #[doc = "The `OfflineResourceList.OBSOLETE` const."]
170 #[doc = ""]
171 #[doc = "*This API requires the following crate features to be activated: `OfflineResourceList`*"]
172 pub const OBSOLETE: u16 = 5u64 as u16;
173}