web_sys/features/
gen_OfflineResourceList.rs

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