web_sys/features/
gen_OfflineResourceList.rs

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