web_sys/features/
gen_OfflineResourceList.rs1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[wasm_bindgen]
6extern "C" {
7 #[wasm_bindgen(
8 extends = "EventTarget",
9 extends = "::js_sys::Object",
10 js_name = "OfflineResourceList",
11 typescript_type = "OfflineResourceList"
12 )]
13 #[derive(Debug, Clone, PartialEq, Eq)]
14 #[doc = "The `OfflineResourceList` class."]
15 #[doc = ""]
16 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineResourceList)"]
17 #[doc = ""]
18 #[doc = "*This API requires the following crate features to be activated: `OfflineResourceList`*"]
19 pub type OfflineResourceList;
20 #[wasm_bindgen(
21 catch,
22 method,
23 getter,
24 js_class = "OfflineResourceList",
25 js_name = "status"
26 )]
27 #[doc = "Getter for the `status` field of this object."]
28 #[doc = ""]
29 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineResourceList/status)"]
30 #[doc = ""]
31 #[doc = "*This API requires the following crate features to be activated: `OfflineResourceList`*"]
32 pub fn status(this: &OfflineResourceList) -> Result<u16, JsValue>;
33 #[wasm_bindgen(
34 method,
35 getter,
36 js_class = "OfflineResourceList",
37 js_name = "onchecking"
38 )]
39 #[doc = "Getter for the `onchecking` field of this object."]
40 #[doc = ""]
41 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineResourceList/onchecking)"]
42 #[doc = ""]
43 #[doc = "*This API requires the following crate features to be activated: `OfflineResourceList`*"]
44 pub fn onchecking(this: &OfflineResourceList) -> Option<::js_sys::Function>;
45 #[wasm_bindgen(
46 method,
47 setter,
48 js_class = "OfflineResourceList",
49 js_name = "onchecking"
50 )]
51 #[doc = "Setter for the `onchecking` field of this object."]
52 #[doc = ""]
53 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineResourceList/onchecking)"]
54 #[doc = ""]
55 #[doc = "*This API requires the following crate features to be activated: `OfflineResourceList`*"]
56 pub fn set_onchecking(this: &OfflineResourceList, value: Option<&::js_sys::Function>);
57 #[wasm_bindgen(method, getter, js_class = "OfflineResourceList", js_name = "onerror")]
58 #[doc = "Getter for the `onerror` field of this object."]
59 #[doc = ""]
60 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineResourceList/onerror)"]
61 #[doc = ""]
62 #[doc = "*This API requires the following crate features to be activated: `OfflineResourceList`*"]
63 pub fn onerror(this: &OfflineResourceList) -> Option<::js_sys::Function>;
64 #[wasm_bindgen(method, setter, js_class = "OfflineResourceList", js_name = "onerror")]
65 #[doc = "Setter for the `onerror` field of this object."]
66 #[doc = ""]
67 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineResourceList/onerror)"]
68 #[doc = ""]
69 #[doc = "*This API requires the following crate features to be activated: `OfflineResourceList`*"]
70 pub fn set_onerror(this: &OfflineResourceList, value: Option<&::js_sys::Function>);
71 #[wasm_bindgen(
72 method,
73 getter,
74 js_class = "OfflineResourceList",
75 js_name = "onnoupdate"
76 )]
77 #[doc = "Getter for the `onnoupdate` field of this object."]
78 #[doc = ""]
79 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineResourceList/onnoupdate)"]
80 #[doc = ""]
81 #[doc = "*This API requires the following crate features to be activated: `OfflineResourceList`*"]
82 pub fn onnoupdate(this: &OfflineResourceList) -> Option<::js_sys::Function>;
83 #[wasm_bindgen(
84 method,
85 setter,
86 js_class = "OfflineResourceList",
87 js_name = "onnoupdate"
88 )]
89 #[doc = "Setter for the `onnoupdate` field of this object."]
90 #[doc = ""]
91 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineResourceList/onnoupdate)"]
92 #[doc = ""]
93 #[doc = "*This API requires the following crate features to be activated: `OfflineResourceList`*"]
94 pub fn set_onnoupdate(this: &OfflineResourceList, value: Option<&::js_sys::Function>);
95 #[wasm_bindgen(
96 method,
97 getter,
98 js_class = "OfflineResourceList",
99 js_name = "ondownloading"
100 )]
101 #[doc = "Getter for the `ondownloading` field of this object."]
102 #[doc = ""]
103 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineResourceList/ondownloading)"]
104 #[doc = ""]
105 #[doc = "*This API requires the following crate features to be activated: `OfflineResourceList`*"]
106 pub fn ondownloading(this: &OfflineResourceList) -> Option<::js_sys::Function>;
107 #[wasm_bindgen(
108 method,
109 setter,
110 js_class = "OfflineResourceList",
111 js_name = "ondownloading"
112 )]
113 #[doc = "Setter for the `ondownloading` field of this object."]
114 #[doc = ""]
115 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineResourceList/ondownloading)"]
116 #[doc = ""]
117 #[doc = "*This API requires the following crate features to be activated: `OfflineResourceList`*"]
118 pub fn set_ondownloading(this: &OfflineResourceList, value: Option<&::js_sys::Function>);
119 #[wasm_bindgen(
120 method,
121 getter,
122 js_class = "OfflineResourceList",
123 js_name = "onprogress"
124 )]
125 #[doc = "Getter for the `onprogress` field of this object."]
126 #[doc = ""]
127 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineResourceList/onprogress)"]
128 #[doc = ""]
129 #[doc = "*This API requires the following crate features to be activated: `OfflineResourceList`*"]
130 pub fn onprogress(this: &OfflineResourceList) -> Option<::js_sys::Function>;
131 #[wasm_bindgen(
132 method,
133 setter,
134 js_class = "OfflineResourceList",
135 js_name = "onprogress"
136 )]
137 #[doc = "Setter for the `onprogress` field of this object."]
138 #[doc = ""]
139 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineResourceList/onprogress)"]
140 #[doc = ""]
141 #[doc = "*This API requires the following crate features to be activated: `OfflineResourceList`*"]
142 pub fn set_onprogress(this: &OfflineResourceList, value: Option<&::js_sys::Function>);
143 #[wasm_bindgen(
144 method,
145 getter,
146 js_class = "OfflineResourceList",
147 js_name = "onupdateready"
148 )]
149 #[doc = "Getter for the `onupdateready` field of this object."]
150 #[doc = ""]
151 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineResourceList/onupdateready)"]
152 #[doc = ""]
153 #[doc = "*This API requires the following crate features to be activated: `OfflineResourceList`*"]
154 pub fn onupdateready(this: &OfflineResourceList) -> Option<::js_sys::Function>;
155 #[wasm_bindgen(
156 method,
157 setter,
158 js_class = "OfflineResourceList",
159 js_name = "onupdateready"
160 )]
161 #[doc = "Setter for the `onupdateready` field of this object."]
162 #[doc = ""]
163 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineResourceList/onupdateready)"]
164 #[doc = ""]
165 #[doc = "*This API requires the following crate features to be activated: `OfflineResourceList`*"]
166 pub fn set_onupdateready(this: &OfflineResourceList, value: Option<&::js_sys::Function>);
167 #[wasm_bindgen(method, getter, js_class = "OfflineResourceList", js_name = "oncached")]
168 #[doc = "Getter for the `oncached` field of this object."]
169 #[doc = ""]
170 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineResourceList/oncached)"]
171 #[doc = ""]
172 #[doc = "*This API requires the following crate features to be activated: `OfflineResourceList`*"]
173 pub fn oncached(this: &OfflineResourceList) -> Option<::js_sys::Function>;
174 #[wasm_bindgen(method, setter, js_class = "OfflineResourceList", js_name = "oncached")]
175 #[doc = "Setter for the `oncached` field of this object."]
176 #[doc = ""]
177 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineResourceList/oncached)"]
178 #[doc = ""]
179 #[doc = "*This API requires the following crate features to be activated: `OfflineResourceList`*"]
180 pub fn set_oncached(this: &OfflineResourceList, value: Option<&::js_sys::Function>);
181 #[wasm_bindgen(
182 method,
183 getter,
184 js_class = "OfflineResourceList",
185 js_name = "onobsolete"
186 )]
187 #[doc = "Getter for the `onobsolete` field of this object."]
188 #[doc = ""]
189 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineResourceList/onobsolete)"]
190 #[doc = ""]
191 #[doc = "*This API requires the following crate features to be activated: `OfflineResourceList`*"]
192 pub fn onobsolete(this: &OfflineResourceList) -> Option<::js_sys::Function>;
193 #[wasm_bindgen(
194 method,
195 setter,
196 js_class = "OfflineResourceList",
197 js_name = "onobsolete"
198 )]
199 #[doc = "Setter for the `onobsolete` field of this object."]
200 #[doc = ""]
201 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineResourceList/onobsolete)"]
202 #[doc = ""]
203 #[doc = "*This API requires the following crate features to be activated: `OfflineResourceList`*"]
204 pub fn set_onobsolete(this: &OfflineResourceList, value: Option<&::js_sys::Function>);
205 #[wasm_bindgen(catch, method, js_class = "OfflineResourceList", js_name = "swapCache")]
206 #[doc = "The `swapCache()` method."]
207 #[doc = ""]
208 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineResourceList/swapCache)"]
209 #[doc = ""]
210 #[doc = "*This API requires the following crate features to be activated: `OfflineResourceList`*"]
211 pub fn swap_cache(this: &OfflineResourceList) -> Result<(), JsValue>;
212 #[wasm_bindgen(catch, method, js_class = "OfflineResourceList")]
213 #[doc = "The `update()` method."]
214 #[doc = ""]
215 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineResourceList/update)"]
216 #[doc = ""]
217 #[doc = "*This API requires the following crate features to be activated: `OfflineResourceList`*"]
218 pub fn update(this: &OfflineResourceList) -> Result<(), JsValue>;
219}
220impl OfflineResourceList {
221 #[doc = "The `OfflineResourceList.UNCACHED` const."]
222 #[doc = ""]
223 #[doc = "*This API requires the following crate features to be activated: `OfflineResourceList`*"]
224 pub const UNCACHED: u16 = 0i64 as u16;
225 #[doc = "The `OfflineResourceList.IDLE` const."]
226 #[doc = ""]
227 #[doc = "*This API requires the following crate features to be activated: `OfflineResourceList`*"]
228 pub const IDLE: u16 = 1u64 as u16;
229 #[doc = "The `OfflineResourceList.CHECKING` const."]
230 #[doc = ""]
231 #[doc = "*This API requires the following crate features to be activated: `OfflineResourceList`*"]
232 pub const CHECKING: u16 = 2u64 as u16;
233 #[doc = "The `OfflineResourceList.DOWNLOADING` const."]
234 #[doc = ""]
235 #[doc = "*This API requires the following crate features to be activated: `OfflineResourceList`*"]
236 pub const DOWNLOADING: u16 = 3u64 as u16;
237 #[doc = "The `OfflineResourceList.UPDATEREADY` const."]
238 #[doc = ""]
239 #[doc = "*This API requires the following crate features to be activated: `OfflineResourceList`*"]
240 pub const UPDATEREADY: u16 = 4u64 as u16;
241 #[doc = "The `OfflineResourceList.OBSOLETE` const."]
242 #[doc = ""]
243 #[doc = "*This API requires the following crate features to be activated: `OfflineResourceList`*"]
244 pub const OBSOLETE: u16 = 5u64 as u16;
245}