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 = WorkerGlobalScope , typescript_type = "WorkerGlobalScope")]
8 #[derive(Debug, Clone, PartialEq, Eq)]
9 #[doc = "The `WorkerGlobalScope` class."]
10 #[doc = ""]
11 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope)"]
12 #[doc = ""]
13 #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
14 pub type WorkerGlobalScope;
15 # [wasm_bindgen (structural , method , getter , js_class = "WorkerGlobalScope" , js_name = self)]
16 #[doc = "Getter for the `self` field of this object."]
17 #[doc = ""]
18 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/self)"]
19 #[doc = ""]
20 #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
21 pub fn self_(this: &WorkerGlobalScope) -> WorkerGlobalScope;
22 #[cfg(feature = "WorkerLocation")]
23 # [wasm_bindgen (structural , method , getter , js_class = "WorkerGlobalScope" , js_name = location)]
24 #[doc = "Getter for the `location` field of this object."]
25 #[doc = ""]
26 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/location)"]
27 #[doc = ""]
28 #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`, `WorkerLocation`*"]
29 pub fn location(this: &WorkerGlobalScope) -> WorkerLocation;
30 #[cfg(feature = "WorkerNavigator")]
31 # [wasm_bindgen (structural , method , getter , js_class = "WorkerGlobalScope" , js_name = navigator)]
32 #[doc = "Getter for the `navigator` field of this object."]
33 #[doc = ""]
34 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/navigator)"]
35 #[doc = ""]
36 #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`, `WorkerNavigator`*"]
37 pub fn navigator(this: &WorkerGlobalScope) -> WorkerNavigator;
38 # [wasm_bindgen (structural , method , getter , js_class = "WorkerGlobalScope" , js_name = onerror)]
39 #[doc = "Getter for the `onerror` field of this object."]
40 #[doc = ""]
41 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/onerror)"]
42 #[doc = ""]
43 #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
44 pub fn onerror(this: &WorkerGlobalScope) -> Option<::js_sys::Function>;
45 # [wasm_bindgen (structural , method , setter , js_class = "WorkerGlobalScope" , js_name = onerror)]
46 #[doc = "Setter for the `onerror` field of this object."]
47 #[doc = ""]
48 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/onerror)"]
49 #[doc = ""]
50 #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
51 pub fn set_onerror(this: &WorkerGlobalScope, value: Option<&::js_sys::Function>);
52 # [wasm_bindgen (structural , method , getter , js_class = "WorkerGlobalScope" , js_name = onoffline)]
53 #[doc = "Getter for the `onoffline` field of this object."]
54 #[doc = ""]
55 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/onoffline)"]
56 #[doc = ""]
57 #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
58 pub fn onoffline(this: &WorkerGlobalScope) -> Option<::js_sys::Function>;
59 # [wasm_bindgen (structural , method , setter , js_class = "WorkerGlobalScope" , js_name = onoffline)]
60 #[doc = "Setter for the `onoffline` field of this object."]
61 #[doc = ""]
62 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/onoffline)"]
63 #[doc = ""]
64 #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
65 pub fn set_onoffline(this: &WorkerGlobalScope, value: Option<&::js_sys::Function>);
66 # [wasm_bindgen (structural , method , getter , js_class = "WorkerGlobalScope" , js_name = ononline)]
67 #[doc = "Getter for the `ononline` field of this object."]
68 #[doc = ""]
69 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/ononline)"]
70 #[doc = ""]
71 #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
72 pub fn ononline(this: &WorkerGlobalScope) -> Option<::js_sys::Function>;
73 # [wasm_bindgen (structural , method , setter , js_class = "WorkerGlobalScope" , js_name = ononline)]
74 #[doc = "Setter for the `ononline` field of this object."]
75 #[doc = ""]
76 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/ononline)"]
77 #[doc = ""]
78 #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
79 pub fn set_ononline(this: &WorkerGlobalScope, value: Option<&::js_sys::Function>);
80 #[cfg(feature = "Crypto")]
81 # [wasm_bindgen (structural , catch , method , getter , js_class = "WorkerGlobalScope" , js_name = crypto)]
82 #[doc = "Getter for the `crypto` field of this object."]
83 #[doc = ""]
84 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/crypto)"]
85 #[doc = ""]
86 #[doc = "*This API requires the following crate features to be activated: `Crypto`, `WorkerGlobalScope`*"]
87 pub fn crypto(this: &WorkerGlobalScope) -> Result<Crypto, JsValue>;
88 #[cfg(feature = "IdbFactory")]
89 # [wasm_bindgen (structural , catch , method , getter , js_class = "WorkerGlobalScope" , js_name = indexedDB)]
90 #[doc = "Getter for the `indexedDB` field of this object."]
91 #[doc = ""]
92 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/indexedDB)"]
93 #[doc = ""]
94 #[doc = "*This API requires the following crate features to be activated: `IdbFactory`, `WorkerGlobalScope`*"]
95 pub fn indexed_db(this: &WorkerGlobalScope) -> Result<Option<IdbFactory>, JsValue>;
96 #[cfg(feature = "Performance")]
97 # [wasm_bindgen (structural , method , getter , js_class = "WorkerGlobalScope" , js_name = performance)]
98 #[doc = "Getter for the `performance` field of this object."]
99 #[doc = ""]
100 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/performance)"]
101 #[doc = ""]
102 #[doc = "*This API requires the following crate features to be activated: `Performance`, `WorkerGlobalScope`*"]
103 pub fn performance(this: &WorkerGlobalScope) -> Option<Performance>;
104 # [wasm_bindgen (structural , method , getter , js_class = "WorkerGlobalScope" , js_name = origin)]
105 #[doc = "Getter for the `origin` field of this object."]
106 #[doc = ""]
107 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/origin)"]
108 #[doc = ""]
109 #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
110 pub fn origin(this: &WorkerGlobalScope) -> ::alloc::string::String;
111 # [wasm_bindgen (structural , method , getter , js_class = "WorkerGlobalScope" , js_name = isSecureContext)]
112 #[doc = "Getter for the `isSecureContext` field of this object."]
113 #[doc = ""]
114 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/isSecureContext)"]
115 #[doc = ""]
116 #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
117 pub fn is_secure_context(this: &WorkerGlobalScope) -> bool;
118 #[cfg(feature = "CacheStorage")]
119 # [wasm_bindgen (structural , catch , method , getter , js_class = "WorkerGlobalScope" , js_name = caches)]
120 #[doc = "Getter for the `caches` field of this object."]
121 #[doc = ""]
122 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/caches)"]
123 #[doc = ""]
124 #[doc = "*This API requires the following crate features to be activated: `CacheStorage`, `WorkerGlobalScope`*"]
125 pub fn caches(this: &WorkerGlobalScope) -> Result<CacheStorage, JsValue>;
126 #[cfg(web_sys_unstable_apis)]
127 #[cfg(feature = "Scheduler")]
128 # [wasm_bindgen (structural , method , getter , js_class = "WorkerGlobalScope" , js_name = scheduler)]
129 #[doc = "Getter for the `scheduler` field of this object."]
130 #[doc = ""]
131 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/scheduler)"]
132 #[doc = ""]
133 #[doc = "*This API requires the following crate features to be activated: `Scheduler`, `WorkerGlobalScope`*"]
134 #[doc = ""]
135 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
136 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
137 pub fn scheduler(this: &WorkerGlobalScope) -> Scheduler;
138 # [wasm_bindgen (catch , method , structural , variadic , js_class = "WorkerGlobalScope" , js_name = importScripts)]
139 #[doc = "The `importScripts()` method."]
140 #[doc = ""]
141 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/importScripts)"]
142 #[doc = ""]
143 #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
144 pub fn import_scripts(this: &WorkerGlobalScope, urls: &::js_sys::Array) -> Result<(), JsValue>;
145 # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = importScripts)]
146 #[doc = "The `importScripts()` method."]
147 #[doc = ""]
148 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/importScripts)"]
149 #[doc = ""]
150 #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
151 pub fn import_scripts_0(this: &WorkerGlobalScope) -> Result<(), JsValue>;
152 # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = importScripts)]
153 #[doc = "The `importScripts()` method."]
154 #[doc = ""]
155 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/importScripts)"]
156 #[doc = ""]
157 #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
158 pub fn import_scripts_1(this: &WorkerGlobalScope, urls_1: &str) -> Result<(), JsValue>;
159 # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = importScripts)]
160 #[doc = "The `importScripts()` method."]
161 #[doc = ""]
162 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/importScripts)"]
163 #[doc = ""]
164 #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
165 pub fn import_scripts_2(
166 this: &WorkerGlobalScope,
167 urls_1: &str,
168 urls_2: &str,
169 ) -> Result<(), JsValue>;
170 # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = importScripts)]
171 #[doc = "The `importScripts()` method."]
172 #[doc = ""]
173 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/importScripts)"]
174 #[doc = ""]
175 #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
176 pub fn import_scripts_3(
177 this: &WorkerGlobalScope,
178 urls_1: &str,
179 urls_2: &str,
180 urls_3: &str,
181 ) -> Result<(), JsValue>;
182 # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = importScripts)]
183 #[doc = "The `importScripts()` method."]
184 #[doc = ""]
185 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/importScripts)"]
186 #[doc = ""]
187 #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
188 pub fn import_scripts_4(
189 this: &WorkerGlobalScope,
190 urls_1: &str,
191 urls_2: &str,
192 urls_3: &str,
193 urls_4: &str,
194 ) -> Result<(), JsValue>;
195 # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = importScripts)]
196 #[doc = "The `importScripts()` method."]
197 #[doc = ""]
198 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/importScripts)"]
199 #[doc = ""]
200 #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
201 pub fn import_scripts_5(
202 this: &WorkerGlobalScope,
203 urls_1: &str,
204 urls_2: &str,
205 urls_3: &str,
206 urls_4: &str,
207 urls_5: &str,
208 ) -> Result<(), JsValue>;
209 # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = importScripts)]
210 #[doc = "The `importScripts()` method."]
211 #[doc = ""]
212 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/importScripts)"]
213 #[doc = ""]
214 #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
215 pub fn import_scripts_6(
216 this: &WorkerGlobalScope,
217 urls_1: &str,
218 urls_2: &str,
219 urls_3: &str,
220 urls_4: &str,
221 urls_5: &str,
222 urls_6: &str,
223 ) -> Result<(), JsValue>;
224 # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = importScripts)]
225 #[doc = "The `importScripts()` method."]
226 #[doc = ""]
227 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/importScripts)"]
228 #[doc = ""]
229 #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
230 pub fn import_scripts_7(
231 this: &WorkerGlobalScope,
232 urls_1: &str,
233 urls_2: &str,
234 urls_3: &str,
235 urls_4: &str,
236 urls_5: &str,
237 urls_6: &str,
238 urls_7: &str,
239 ) -> Result<(), JsValue>;
240 # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = atob)]
241 #[doc = "The `atob()` method."]
242 #[doc = ""]
243 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/atob)"]
244 #[doc = ""]
245 #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
246 pub fn atob(this: &WorkerGlobalScope, atob: &str) -> Result<::alloc::string::String, JsValue>;
247 # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = btoa)]
248 #[doc = "The `btoa()` method."]
249 #[doc = ""]
250 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/btoa)"]
251 #[doc = ""]
252 #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
253 pub fn btoa(this: &WorkerGlobalScope, btoa: &str) -> Result<::alloc::string::String, JsValue>;
254 # [wasm_bindgen (method , structural , js_class = "WorkerGlobalScope" , js_name = clearInterval)]
255 #[doc = "The `clearInterval()` method."]
256 #[doc = ""]
257 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/clearInterval)"]
258 #[doc = ""]
259 #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
260 pub fn clear_interval(this: &WorkerGlobalScope);
261 # [wasm_bindgen (method , structural , js_class = "WorkerGlobalScope" , js_name = clearInterval)]
262 #[doc = "The `clearInterval()` method."]
263 #[doc = ""]
264 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/clearInterval)"]
265 #[doc = ""]
266 #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
267 pub fn clear_interval_with_handle(this: &WorkerGlobalScope, handle: i32);
268 # [wasm_bindgen (method , structural , js_class = "WorkerGlobalScope" , js_name = clearTimeout)]
269 #[doc = "The `clearTimeout()` method."]
270 #[doc = ""]
271 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/clearTimeout)"]
272 #[doc = ""]
273 #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
274 pub fn clear_timeout(this: &WorkerGlobalScope);
275 # [wasm_bindgen (method , structural , js_class = "WorkerGlobalScope" , js_name = clearTimeout)]
276 #[doc = "The `clearTimeout()` method."]
277 #[doc = ""]
278 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/clearTimeout)"]
279 #[doc = ""]
280 #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
281 pub fn clear_timeout_with_handle(this: &WorkerGlobalScope, handle: i32);
282 #[cfg(feature = "HtmlImageElement")]
283 # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = createImageBitmap)]
284 #[doc = "The `createImageBitmap()` method."]
285 #[doc = ""]
286 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/createImageBitmap)"]
287 #[doc = ""]
288 #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`, `WorkerGlobalScope`*"]
289 pub fn create_image_bitmap_with_html_image_element(
290 this: &WorkerGlobalScope,
291 a_image: &HtmlImageElement,
292 ) -> Result<::js_sys::Promise, JsValue>;
293 #[cfg(feature = "SvgImageElement")]
294 # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = createImageBitmap)]
295 #[doc = "The `createImageBitmap()` method."]
296 #[doc = ""]
297 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/createImageBitmap)"]
298 #[doc = ""]
299 #[doc = "*This API requires the following crate features to be activated: `SvgImageElement`, `WorkerGlobalScope`*"]
300 pub fn create_image_bitmap_with_svg_image_element(
301 this: &WorkerGlobalScope,
302 a_image: &SvgImageElement,
303 ) -> Result<::js_sys::Promise, JsValue>;
304 #[cfg(feature = "HtmlCanvasElement")]
305 # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = createImageBitmap)]
306 #[doc = "The `createImageBitmap()` method."]
307 #[doc = ""]
308 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/createImageBitmap)"]
309 #[doc = ""]
310 #[doc = "*This API requires the following crate features to be activated: `HtmlCanvasElement`, `WorkerGlobalScope`*"]
311 pub fn create_image_bitmap_with_html_canvas_element(
312 this: &WorkerGlobalScope,
313 a_image: &HtmlCanvasElement,
314 ) -> Result<::js_sys::Promise, JsValue>;
315 #[cfg(feature = "HtmlVideoElement")]
316 # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = createImageBitmap)]
317 #[doc = "The `createImageBitmap()` method."]
318 #[doc = ""]
319 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/createImageBitmap)"]
320 #[doc = ""]
321 #[doc = "*This API requires the following crate features to be activated: `HtmlVideoElement`, `WorkerGlobalScope`*"]
322 pub fn create_image_bitmap_with_html_video_element(
323 this: &WorkerGlobalScope,
324 a_image: &HtmlVideoElement,
325 ) -> Result<::js_sys::Promise, JsValue>;
326 #[cfg(feature = "ImageBitmap")]
327 # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = createImageBitmap)]
328 #[doc = "The `createImageBitmap()` method."]
329 #[doc = ""]
330 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/createImageBitmap)"]
331 #[doc = ""]
332 #[doc = "*This API requires the following crate features to be activated: `ImageBitmap`, `WorkerGlobalScope`*"]
333 pub fn create_image_bitmap_with_image_bitmap(
334 this: &WorkerGlobalScope,
335 a_image: &ImageBitmap,
336 ) -> Result<::js_sys::Promise, JsValue>;
337 #[cfg(feature = "OffscreenCanvas")]
338 # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = createImageBitmap)]
339 #[doc = "The `createImageBitmap()` method."]
340 #[doc = ""]
341 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/createImageBitmap)"]
342 #[doc = ""]
343 #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvas`, `WorkerGlobalScope`*"]
344 pub fn create_image_bitmap_with_offscreen_canvas(
345 this: &WorkerGlobalScope,
346 a_image: &OffscreenCanvas,
347 ) -> Result<::js_sys::Promise, JsValue>;
348 #[cfg(feature = "VideoFrame")]
349 # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = createImageBitmap)]
350 #[doc = "The `createImageBitmap()` method."]
351 #[doc = ""]
352 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/createImageBitmap)"]
353 #[doc = ""]
354 #[doc = "*This API requires the following crate features to be activated: `VideoFrame`, `WorkerGlobalScope`*"]
355 pub fn create_image_bitmap_with_video_frame(
356 this: &WorkerGlobalScope,
357 a_image: &VideoFrame,
358 ) -> Result<::js_sys::Promise, JsValue>;
359 #[cfg(feature = "Blob")]
360 # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = createImageBitmap)]
361 #[doc = "The `createImageBitmap()` method."]
362 #[doc = ""]
363 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/createImageBitmap)"]
364 #[doc = ""]
365 #[doc = "*This API requires the following crate features to be activated: `Blob`, `WorkerGlobalScope`*"]
366 pub fn create_image_bitmap_with_blob(
367 this: &WorkerGlobalScope,
368 a_image: &Blob,
369 ) -> Result<::js_sys::Promise, JsValue>;
370 #[cfg(feature = "ImageData")]
371 # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = createImageBitmap)]
372 #[doc = "The `createImageBitmap()` method."]
373 #[doc = ""]
374 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/createImageBitmap)"]
375 #[doc = ""]
376 #[doc = "*This API requires the following crate features to be activated: `ImageData`, `WorkerGlobalScope`*"]
377 pub fn create_image_bitmap_with_image_data(
378 this: &WorkerGlobalScope,
379 a_image: &ImageData,
380 ) -> Result<::js_sys::Promise, JsValue>;
381 #[cfg(all(feature = "HtmlImageElement", feature = "ImageBitmapOptions",))]
382 # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = createImageBitmap)]
383 #[doc = "The `createImageBitmap()` method."]
384 #[doc = ""]
385 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/createImageBitmap)"]
386 #[doc = ""]
387 #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`, `ImageBitmapOptions`, `WorkerGlobalScope`*"]
388 pub fn create_image_bitmap_with_html_image_element_and_image_bitmap_options(
389 this: &WorkerGlobalScope,
390 a_image: &HtmlImageElement,
391 a_options: &ImageBitmapOptions,
392 ) -> Result<::js_sys::Promise, JsValue>;
393 #[cfg(all(feature = "ImageBitmapOptions", feature = "SvgImageElement",))]
394 # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = createImageBitmap)]
395 #[doc = "The `createImageBitmap()` method."]
396 #[doc = ""]
397 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/createImageBitmap)"]
398 #[doc = ""]
399 #[doc = "*This API requires the following crate features to be activated: `ImageBitmapOptions`, `SvgImageElement`, `WorkerGlobalScope`*"]
400 pub fn create_image_bitmap_with_svg_image_element_and_image_bitmap_options(
401 this: &WorkerGlobalScope,
402 a_image: &SvgImageElement,
403 a_options: &ImageBitmapOptions,
404 ) -> Result<::js_sys::Promise, JsValue>;
405 #[cfg(all(feature = "HtmlCanvasElement", feature = "ImageBitmapOptions",))]
406 # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = createImageBitmap)]
407 #[doc = "The `createImageBitmap()` method."]
408 #[doc = ""]
409 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/createImageBitmap)"]
410 #[doc = ""]
411 #[doc = "*This API requires the following crate features to be activated: `HtmlCanvasElement`, `ImageBitmapOptions`, `WorkerGlobalScope`*"]
412 pub fn create_image_bitmap_with_html_canvas_element_and_image_bitmap_options(
413 this: &WorkerGlobalScope,
414 a_image: &HtmlCanvasElement,
415 a_options: &ImageBitmapOptions,
416 ) -> Result<::js_sys::Promise, JsValue>;
417 #[cfg(all(feature = "HtmlVideoElement", feature = "ImageBitmapOptions",))]
418 # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = createImageBitmap)]
419 #[doc = "The `createImageBitmap()` method."]
420 #[doc = ""]
421 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/createImageBitmap)"]
422 #[doc = ""]
423 #[doc = "*This API requires the following crate features to be activated: `HtmlVideoElement`, `ImageBitmapOptions`, `WorkerGlobalScope`*"]
424 pub fn create_image_bitmap_with_html_video_element_and_image_bitmap_options(
425 this: &WorkerGlobalScope,
426 a_image: &HtmlVideoElement,
427 a_options: &ImageBitmapOptions,
428 ) -> Result<::js_sys::Promise, JsValue>;
429 #[cfg(all(feature = "ImageBitmap", feature = "ImageBitmapOptions",))]
430 # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = createImageBitmap)]
431 #[doc = "The `createImageBitmap()` method."]
432 #[doc = ""]
433 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/createImageBitmap)"]
434 #[doc = ""]
435 #[doc = "*This API requires the following crate features to be activated: `ImageBitmap`, `ImageBitmapOptions`, `WorkerGlobalScope`*"]
436 pub fn create_image_bitmap_with_image_bitmap_and_image_bitmap_options(
437 this: &WorkerGlobalScope,
438 a_image: &ImageBitmap,
439 a_options: &ImageBitmapOptions,
440 ) -> Result<::js_sys::Promise, JsValue>;
441 #[cfg(all(feature = "ImageBitmapOptions", feature = "OffscreenCanvas",))]
442 # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = createImageBitmap)]
443 #[doc = "The `createImageBitmap()` method."]
444 #[doc = ""]
445 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/createImageBitmap)"]
446 #[doc = ""]
447 #[doc = "*This API requires the following crate features to be activated: `ImageBitmapOptions`, `OffscreenCanvas`, `WorkerGlobalScope`*"]
448 pub fn create_image_bitmap_with_offscreen_canvas_and_image_bitmap_options(
449 this: &WorkerGlobalScope,
450 a_image: &OffscreenCanvas,
451 a_options: &ImageBitmapOptions,
452 ) -> Result<::js_sys::Promise, JsValue>;
453 #[cfg(all(feature = "ImageBitmapOptions", feature = "VideoFrame",))]
454 # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = createImageBitmap)]
455 #[doc = "The `createImageBitmap()` method."]
456 #[doc = ""]
457 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/createImageBitmap)"]
458 #[doc = ""]
459 #[doc = "*This API requires the following crate features to be activated: `ImageBitmapOptions`, `VideoFrame`, `WorkerGlobalScope`*"]
460 pub fn create_image_bitmap_with_video_frame_and_image_bitmap_options(
461 this: &WorkerGlobalScope,
462 a_image: &VideoFrame,
463 a_options: &ImageBitmapOptions,
464 ) -> Result<::js_sys::Promise, JsValue>;
465 #[cfg(all(feature = "Blob", feature = "ImageBitmapOptions",))]
466 # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = createImageBitmap)]
467 #[doc = "The `createImageBitmap()` method."]
468 #[doc = ""]
469 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/createImageBitmap)"]
470 #[doc = ""]
471 #[doc = "*This API requires the following crate features to be activated: `Blob`, `ImageBitmapOptions`, `WorkerGlobalScope`*"]
472 pub fn create_image_bitmap_with_blob_and_image_bitmap_options(
473 this: &WorkerGlobalScope,
474 a_image: &Blob,
475 a_options: &ImageBitmapOptions,
476 ) -> Result<::js_sys::Promise, JsValue>;
477 #[cfg(all(feature = "ImageBitmapOptions", feature = "ImageData",))]
478 # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = createImageBitmap)]
479 #[doc = "The `createImageBitmap()` method."]
480 #[doc = ""]
481 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/createImageBitmap)"]
482 #[doc = ""]
483 #[doc = "*This API requires the following crate features to be activated: `ImageBitmapOptions`, `ImageData`, `WorkerGlobalScope`*"]
484 pub fn create_image_bitmap_with_image_data_and_image_bitmap_options(
485 this: &WorkerGlobalScope,
486 a_image: &ImageData,
487 a_options: &ImageBitmapOptions,
488 ) -> Result<::js_sys::Promise, JsValue>;
489 #[cfg(feature = "HtmlImageElement")]
490 # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = createImageBitmap)]
491 #[doc = "The `createImageBitmap()` method."]
492 #[doc = ""]
493 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/createImageBitmap)"]
494 #[doc = ""]
495 #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`, `WorkerGlobalScope`*"]
496 pub fn create_image_bitmap_with_html_image_element_and_a_sx_and_a_sy_and_a_sw_and_a_sh(
497 this: &WorkerGlobalScope,
498 a_image: &HtmlImageElement,
499 a_sx: i32,
500 a_sy: i32,
501 a_sw: i32,
502 a_sh: i32,
503 ) -> Result<::js_sys::Promise, JsValue>;
504 #[cfg(feature = "SvgImageElement")]
505 # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = createImageBitmap)]
506 #[doc = "The `createImageBitmap()` method."]
507 #[doc = ""]
508 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/createImageBitmap)"]
509 #[doc = ""]
510 #[doc = "*This API requires the following crate features to be activated: `SvgImageElement`, `WorkerGlobalScope`*"]
511 pub fn create_image_bitmap_with_svg_image_element_and_a_sx_and_a_sy_and_a_sw_and_a_sh(
512 this: &WorkerGlobalScope,
513 a_image: &SvgImageElement,
514 a_sx: i32,
515 a_sy: i32,
516 a_sw: i32,
517 a_sh: i32,
518 ) -> Result<::js_sys::Promise, JsValue>;
519 #[cfg(feature = "HtmlCanvasElement")]
520 # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = createImageBitmap)]
521 #[doc = "The `createImageBitmap()` method."]
522 #[doc = ""]
523 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/createImageBitmap)"]
524 #[doc = ""]
525 #[doc = "*This API requires the following crate features to be activated: `HtmlCanvasElement`, `WorkerGlobalScope`*"]
526 pub fn create_image_bitmap_with_html_canvas_element_and_a_sx_and_a_sy_and_a_sw_and_a_sh(
527 this: &WorkerGlobalScope,
528 a_image: &HtmlCanvasElement,
529 a_sx: i32,
530 a_sy: i32,
531 a_sw: i32,
532 a_sh: i32,
533 ) -> Result<::js_sys::Promise, JsValue>;
534 #[cfg(feature = "HtmlVideoElement")]
535 # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = createImageBitmap)]
536 #[doc = "The `createImageBitmap()` method."]
537 #[doc = ""]
538 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/createImageBitmap)"]
539 #[doc = ""]
540 #[doc = "*This API requires the following crate features to be activated: `HtmlVideoElement`, `WorkerGlobalScope`*"]
541 pub fn create_image_bitmap_with_html_video_element_and_a_sx_and_a_sy_and_a_sw_and_a_sh(
542 this: &WorkerGlobalScope,
543 a_image: &HtmlVideoElement,
544 a_sx: i32,
545 a_sy: i32,
546 a_sw: i32,
547 a_sh: i32,
548 ) -> Result<::js_sys::Promise, JsValue>;
549 #[cfg(feature = "ImageBitmap")]
550 # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = createImageBitmap)]
551 #[doc = "The `createImageBitmap()` method."]
552 #[doc = ""]
553 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/createImageBitmap)"]
554 #[doc = ""]
555 #[doc = "*This API requires the following crate features to be activated: `ImageBitmap`, `WorkerGlobalScope`*"]
556 pub fn create_image_bitmap_with_image_bitmap_and_a_sx_and_a_sy_and_a_sw_and_a_sh(
557 this: &WorkerGlobalScope,
558 a_image: &ImageBitmap,
559 a_sx: i32,
560 a_sy: i32,
561 a_sw: i32,
562 a_sh: i32,
563 ) -> Result<::js_sys::Promise, JsValue>;
564 #[cfg(feature = "OffscreenCanvas")]
565 # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = createImageBitmap)]
566 #[doc = "The `createImageBitmap()` method."]
567 #[doc = ""]
568 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/createImageBitmap)"]
569 #[doc = ""]
570 #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvas`, `WorkerGlobalScope`*"]
571 pub fn create_image_bitmap_with_offscreen_canvas_and_a_sx_and_a_sy_and_a_sw_and_a_sh(
572 this: &WorkerGlobalScope,
573 a_image: &OffscreenCanvas,
574 a_sx: i32,
575 a_sy: i32,
576 a_sw: i32,
577 a_sh: i32,
578 ) -> Result<::js_sys::Promise, JsValue>;
579 #[cfg(feature = "VideoFrame")]
580 # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = createImageBitmap)]
581 #[doc = "The `createImageBitmap()` method."]
582 #[doc = ""]
583 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/createImageBitmap)"]
584 #[doc = ""]
585 #[doc = "*This API requires the following crate features to be activated: `VideoFrame`, `WorkerGlobalScope`*"]
586 pub fn create_image_bitmap_with_video_frame_and_a_sx_and_a_sy_and_a_sw_and_a_sh(
587 this: &WorkerGlobalScope,
588 a_image: &VideoFrame,
589 a_sx: i32,
590 a_sy: i32,
591 a_sw: i32,
592 a_sh: i32,
593 ) -> Result<::js_sys::Promise, JsValue>;
594 #[cfg(feature = "Blob")]
595 # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = createImageBitmap)]
596 #[doc = "The `createImageBitmap()` method."]
597 #[doc = ""]
598 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/createImageBitmap)"]
599 #[doc = ""]
600 #[doc = "*This API requires the following crate features to be activated: `Blob`, `WorkerGlobalScope`*"]
601 pub fn create_image_bitmap_with_blob_and_a_sx_and_a_sy_and_a_sw_and_a_sh(
602 this: &WorkerGlobalScope,
603 a_image: &Blob,
604 a_sx: i32,
605 a_sy: i32,
606 a_sw: i32,
607 a_sh: i32,
608 ) -> Result<::js_sys::Promise, JsValue>;
609 #[cfg(feature = "ImageData")]
610 # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = createImageBitmap)]
611 #[doc = "The `createImageBitmap()` method."]
612 #[doc = ""]
613 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/createImageBitmap)"]
614 #[doc = ""]
615 #[doc = "*This API requires the following crate features to be activated: `ImageData`, `WorkerGlobalScope`*"]
616 pub fn create_image_bitmap_with_image_data_and_a_sx_and_a_sy_and_a_sw_and_a_sh(
617 this: &WorkerGlobalScope,
618 a_image: &ImageData,
619 a_sx: i32,
620 a_sy: i32,
621 a_sw: i32,
622 a_sh: i32,
623 ) -> Result<::js_sys::Promise, JsValue>;
624 #[cfg(all(feature = "HtmlImageElement", feature = "ImageBitmapOptions",))]
625 # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = createImageBitmap)]
626 #[doc = "The `createImageBitmap()` method."]
627 #[doc = ""]
628 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/createImageBitmap)"]
629 #[doc = ""]
630 #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`, `ImageBitmapOptions`, `WorkerGlobalScope`*"]
631 pub fn create_image_bitmap_with_html_image_element_and_a_sx_and_a_sy_and_a_sw_and_a_sh_and_a_options(
632 this: &WorkerGlobalScope,
633 a_image: &HtmlImageElement,
634 a_sx: i32,
635 a_sy: i32,
636 a_sw: i32,
637 a_sh: i32,
638 a_options: &ImageBitmapOptions,
639 ) -> Result<::js_sys::Promise, JsValue>;
640 #[cfg(all(feature = "ImageBitmapOptions", feature = "SvgImageElement",))]
641 # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = createImageBitmap)]
642 #[doc = "The `createImageBitmap()` method."]
643 #[doc = ""]
644 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/createImageBitmap)"]
645 #[doc = ""]
646 #[doc = "*This API requires the following crate features to be activated: `ImageBitmapOptions`, `SvgImageElement`, `WorkerGlobalScope`*"]
647 pub fn create_image_bitmap_with_svg_image_element_and_a_sx_and_a_sy_and_a_sw_and_a_sh_and_a_options(
648 this: &WorkerGlobalScope,
649 a_image: &SvgImageElement,
650 a_sx: i32,
651 a_sy: i32,
652 a_sw: i32,
653 a_sh: i32,
654 a_options: &ImageBitmapOptions,
655 ) -> Result<::js_sys::Promise, JsValue>;
656 #[cfg(all(feature = "HtmlCanvasElement", feature = "ImageBitmapOptions",))]
657 # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = createImageBitmap)]
658 #[doc = "The `createImageBitmap()` method."]
659 #[doc = ""]
660 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/createImageBitmap)"]
661 #[doc = ""]
662 #[doc = "*This API requires the following crate features to be activated: `HtmlCanvasElement`, `ImageBitmapOptions`, `WorkerGlobalScope`*"]
663 pub fn create_image_bitmap_with_html_canvas_element_and_a_sx_and_a_sy_and_a_sw_and_a_sh_and_a_options(
664 this: &WorkerGlobalScope,
665 a_image: &HtmlCanvasElement,
666 a_sx: i32,
667 a_sy: i32,
668 a_sw: i32,
669 a_sh: i32,
670 a_options: &ImageBitmapOptions,
671 ) -> Result<::js_sys::Promise, JsValue>;
672 #[cfg(all(feature = "HtmlVideoElement", feature = "ImageBitmapOptions",))]
673 # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = createImageBitmap)]
674 #[doc = "The `createImageBitmap()` method."]
675 #[doc = ""]
676 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/createImageBitmap)"]
677 #[doc = ""]
678 #[doc = "*This API requires the following crate features to be activated: `HtmlVideoElement`, `ImageBitmapOptions`, `WorkerGlobalScope`*"]
679 pub fn create_image_bitmap_with_html_video_element_and_a_sx_and_a_sy_and_a_sw_and_a_sh_and_a_options(
680 this: &WorkerGlobalScope,
681 a_image: &HtmlVideoElement,
682 a_sx: i32,
683 a_sy: i32,
684 a_sw: i32,
685 a_sh: i32,
686 a_options: &ImageBitmapOptions,
687 ) -> Result<::js_sys::Promise, JsValue>;
688 #[cfg(all(feature = "ImageBitmap", feature = "ImageBitmapOptions",))]
689 # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = createImageBitmap)]
690 #[doc = "The `createImageBitmap()` method."]
691 #[doc = ""]
692 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/createImageBitmap)"]
693 #[doc = ""]
694 #[doc = "*This API requires the following crate features to be activated: `ImageBitmap`, `ImageBitmapOptions`, `WorkerGlobalScope`*"]
695 pub fn create_image_bitmap_with_image_bitmap_and_a_sx_and_a_sy_and_a_sw_and_a_sh_and_a_options(
696 this: &WorkerGlobalScope,
697 a_image: &ImageBitmap,
698 a_sx: i32,
699 a_sy: i32,
700 a_sw: i32,
701 a_sh: i32,
702 a_options: &ImageBitmapOptions,
703 ) -> Result<::js_sys::Promise, JsValue>;
704 #[cfg(all(feature = "ImageBitmapOptions", feature = "OffscreenCanvas",))]
705 # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = createImageBitmap)]
706 #[doc = "The `createImageBitmap()` method."]
707 #[doc = ""]
708 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/createImageBitmap)"]
709 #[doc = ""]
710 #[doc = "*This API requires the following crate features to be activated: `ImageBitmapOptions`, `OffscreenCanvas`, `WorkerGlobalScope`*"]
711 pub fn create_image_bitmap_with_offscreen_canvas_and_a_sx_and_a_sy_and_a_sw_and_a_sh_and_a_options(
712 this: &WorkerGlobalScope,
713 a_image: &OffscreenCanvas,
714 a_sx: i32,
715 a_sy: i32,
716 a_sw: i32,
717 a_sh: i32,
718 a_options: &ImageBitmapOptions,
719 ) -> Result<::js_sys::Promise, JsValue>;
720 #[cfg(all(feature = "ImageBitmapOptions", feature = "VideoFrame",))]
721 # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = createImageBitmap)]
722 #[doc = "The `createImageBitmap()` method."]
723 #[doc = ""]
724 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/createImageBitmap)"]
725 #[doc = ""]
726 #[doc = "*This API requires the following crate features to be activated: `ImageBitmapOptions`, `VideoFrame`, `WorkerGlobalScope`*"]
727 pub fn create_image_bitmap_with_video_frame_and_a_sx_and_a_sy_and_a_sw_and_a_sh_and_a_options(
728 this: &WorkerGlobalScope,
729 a_image: &VideoFrame,
730 a_sx: i32,
731 a_sy: i32,
732 a_sw: i32,
733 a_sh: i32,
734 a_options: &ImageBitmapOptions,
735 ) -> Result<::js_sys::Promise, JsValue>;
736 #[cfg(all(feature = "Blob", feature = "ImageBitmapOptions",))]
737 # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = createImageBitmap)]
738 #[doc = "The `createImageBitmap()` method."]
739 #[doc = ""]
740 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/createImageBitmap)"]
741 #[doc = ""]
742 #[doc = "*This API requires the following crate features to be activated: `Blob`, `ImageBitmapOptions`, `WorkerGlobalScope`*"]
743 pub fn create_image_bitmap_with_blob_and_a_sx_and_a_sy_and_a_sw_and_a_sh_and_a_options(
744 this: &WorkerGlobalScope,
745 a_image: &Blob,
746 a_sx: i32,
747 a_sy: i32,
748 a_sw: i32,
749 a_sh: i32,
750 a_options: &ImageBitmapOptions,
751 ) -> Result<::js_sys::Promise, JsValue>;
752 #[cfg(all(feature = "ImageBitmapOptions", feature = "ImageData",))]
753 # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = createImageBitmap)]
754 #[doc = "The `createImageBitmap()` method."]
755 #[doc = ""]
756 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/createImageBitmap)"]
757 #[doc = ""]
758 #[doc = "*This API requires the following crate features to be activated: `ImageBitmapOptions`, `ImageData`, `WorkerGlobalScope`*"]
759 pub fn create_image_bitmap_with_image_data_and_a_sx_and_a_sy_and_a_sw_and_a_sh_and_a_options(
760 this: &WorkerGlobalScope,
761 a_image: &ImageData,
762 a_sx: i32,
763 a_sy: i32,
764 a_sw: i32,
765 a_sh: i32,
766 a_options: &ImageBitmapOptions,
767 ) -> Result<::js_sys::Promise, JsValue>;
768 #[cfg(feature = "Request")]
769 # [wasm_bindgen (method , structural , js_class = "WorkerGlobalScope" , js_name = fetch)]
770 #[doc = "The `fetch()` method."]
771 #[doc = ""]
772 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/fetch)"]
773 #[doc = ""]
774 #[doc = "*This API requires the following crate features to be activated: `Request`, `WorkerGlobalScope`*"]
775 pub fn fetch_with_request(this: &WorkerGlobalScope, input: &Request) -> ::js_sys::Promise;
776 # [wasm_bindgen (method , structural , js_class = "WorkerGlobalScope" , js_name = fetch)]
777 #[doc = "The `fetch()` method."]
778 #[doc = ""]
779 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/fetch)"]
780 #[doc = ""]
781 #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
782 pub fn fetch_with_str(this: &WorkerGlobalScope, input: &str) -> ::js_sys::Promise;
783 #[cfg(all(feature = "Request", feature = "RequestInit",))]
784 # [wasm_bindgen (method , structural , js_class = "WorkerGlobalScope" , js_name = fetch)]
785 #[doc = "The `fetch()` method."]
786 #[doc = ""]
787 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/fetch)"]
788 #[doc = ""]
789 #[doc = "*This API requires the following crate features to be activated: `Request`, `RequestInit`, `WorkerGlobalScope`*"]
790 pub fn fetch_with_request_and_init(
791 this: &WorkerGlobalScope,
792 input: &Request,
793 init: &RequestInit,
794 ) -> ::js_sys::Promise;
795 #[cfg(feature = "RequestInit")]
796 # [wasm_bindgen (method , structural , js_class = "WorkerGlobalScope" , js_name = fetch)]
797 #[doc = "The `fetch()` method."]
798 #[doc = ""]
799 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/fetch)"]
800 #[doc = ""]
801 #[doc = "*This API requires the following crate features to be activated: `RequestInit`, `WorkerGlobalScope`*"]
802 pub fn fetch_with_str_and_init(
803 this: &WorkerGlobalScope,
804 input: &str,
805 init: &RequestInit,
806 ) -> ::js_sys::Promise;
807 # [wasm_bindgen (method , structural , js_class = "WorkerGlobalScope" , js_name = queueMicrotask)]
808 #[doc = "The `queueMicrotask()` method."]
809 #[doc = ""]
810 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/queueMicrotask)"]
811 #[doc = ""]
812 #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
813 pub fn queue_microtask(this: &WorkerGlobalScope, callback: &::js_sys::Function);
814 # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setInterval)]
815 #[doc = "The `setInterval()` method."]
816 #[doc = ""]
817 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setInterval)"]
818 #[doc = ""]
819 #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
820 pub fn set_interval_with_callback(
821 this: &WorkerGlobalScope,
822 handler: &::js_sys::Function,
823 ) -> Result<i32, JsValue>;
824 # [wasm_bindgen (catch , method , structural , variadic , js_class = "WorkerGlobalScope" , js_name = setInterval)]
825 #[doc = "The `setInterval()` method."]
826 #[doc = ""]
827 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setInterval)"]
828 #[doc = ""]
829 #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
830 pub fn set_interval_with_callback_and_timeout_and_arguments(
831 this: &WorkerGlobalScope,
832 handler: &::js_sys::Function,
833 timeout: i32,
834 arguments: &::js_sys::Array,
835 ) -> Result<i32, JsValue>;
836 # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setInterval)]
837 #[doc = "The `setInterval()` method."]
838 #[doc = ""]
839 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setInterval)"]
840 #[doc = ""]
841 #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
842 pub fn set_interval_with_callback_and_timeout_and_arguments_0(
843 this: &WorkerGlobalScope,
844 handler: &::js_sys::Function,
845 timeout: i32,
846 ) -> Result<i32, JsValue>;
847 # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setInterval)]
848 #[doc = "The `setInterval()` method."]
849 #[doc = ""]
850 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setInterval)"]
851 #[doc = ""]
852 #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
853 pub fn set_interval_with_callback_and_timeout_and_arguments_1(
854 this: &WorkerGlobalScope,
855 handler: &::js_sys::Function,
856 timeout: i32,
857 arguments_1: &::wasm_bindgen::JsValue,
858 ) -> Result<i32, JsValue>;
859 # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setInterval)]
860 #[doc = "The `setInterval()` method."]
861 #[doc = ""]
862 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setInterval)"]
863 #[doc = ""]
864 #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
865 pub fn set_interval_with_callback_and_timeout_and_arguments_2(
866 this: &WorkerGlobalScope,
867 handler: &::js_sys::Function,
868 timeout: i32,
869 arguments_1: &::wasm_bindgen::JsValue,
870 arguments_2: &::wasm_bindgen::JsValue,
871 ) -> Result<i32, JsValue>;
872 # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setInterval)]
873 #[doc = "The `setInterval()` method."]
874 #[doc = ""]
875 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setInterval)"]
876 #[doc = ""]
877 #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
878 pub fn set_interval_with_callback_and_timeout_and_arguments_3(
879 this: &WorkerGlobalScope,
880 handler: &::js_sys::Function,
881 timeout: i32,
882 arguments_1: &::wasm_bindgen::JsValue,
883 arguments_2: &::wasm_bindgen::JsValue,
884 arguments_3: &::wasm_bindgen::JsValue,
885 ) -> Result<i32, JsValue>;
886 # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setInterval)]
887 #[doc = "The `setInterval()` method."]
888 #[doc = ""]
889 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setInterval)"]
890 #[doc = ""]
891 #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
892 pub fn set_interval_with_callback_and_timeout_and_arguments_4(
893 this: &WorkerGlobalScope,
894 handler: &::js_sys::Function,
895 timeout: i32,
896 arguments_1: &::wasm_bindgen::JsValue,
897 arguments_2: &::wasm_bindgen::JsValue,
898 arguments_3: &::wasm_bindgen::JsValue,
899 arguments_4: &::wasm_bindgen::JsValue,
900 ) -> Result<i32, JsValue>;
901 # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setInterval)]
902 #[doc = "The `setInterval()` method."]
903 #[doc = ""]
904 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setInterval)"]
905 #[doc = ""]
906 #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
907 pub fn set_interval_with_callback_and_timeout_and_arguments_5(
908 this: &WorkerGlobalScope,
909 handler: &::js_sys::Function,
910 timeout: i32,
911 arguments_1: &::wasm_bindgen::JsValue,
912 arguments_2: &::wasm_bindgen::JsValue,
913 arguments_3: &::wasm_bindgen::JsValue,
914 arguments_4: &::wasm_bindgen::JsValue,
915 arguments_5: &::wasm_bindgen::JsValue,
916 ) -> Result<i32, JsValue>;
917 # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setInterval)]
918 #[doc = "The `setInterval()` method."]
919 #[doc = ""]
920 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setInterval)"]
921 #[doc = ""]
922 #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
923 pub fn set_interval_with_callback_and_timeout_and_arguments_6(
924 this: &WorkerGlobalScope,
925 handler: &::js_sys::Function,
926 timeout: i32,
927 arguments_1: &::wasm_bindgen::JsValue,
928 arguments_2: &::wasm_bindgen::JsValue,
929 arguments_3: &::wasm_bindgen::JsValue,
930 arguments_4: &::wasm_bindgen::JsValue,
931 arguments_5: &::wasm_bindgen::JsValue,
932 arguments_6: &::wasm_bindgen::JsValue,
933 ) -> Result<i32, JsValue>;
934 # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setInterval)]
935 #[doc = "The `setInterval()` method."]
936 #[doc = ""]
937 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setInterval)"]
938 #[doc = ""]
939 #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
940 pub fn set_interval_with_callback_and_timeout_and_arguments_7(
941 this: &WorkerGlobalScope,
942 handler: &::js_sys::Function,
943 timeout: i32,
944 arguments_1: &::wasm_bindgen::JsValue,
945 arguments_2: &::wasm_bindgen::JsValue,
946 arguments_3: &::wasm_bindgen::JsValue,
947 arguments_4: &::wasm_bindgen::JsValue,
948 arguments_5: &::wasm_bindgen::JsValue,
949 arguments_6: &::wasm_bindgen::JsValue,
950 arguments_7: &::wasm_bindgen::JsValue,
951 ) -> Result<i32, JsValue>;
952 # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setInterval)]
953 #[doc = "The `setInterval()` method."]
954 #[doc = ""]
955 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setInterval)"]
956 #[doc = ""]
957 #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
958 pub fn set_interval_with_str(this: &WorkerGlobalScope, handler: &str) -> Result<i32, JsValue>;
959 # [wasm_bindgen (catch , method , structural , variadic , js_class = "WorkerGlobalScope" , js_name = setInterval)]
960 #[doc = "The `setInterval()` method."]
961 #[doc = ""]
962 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setInterval)"]
963 #[doc = ""]
964 #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
965 pub fn set_interval_with_str_and_timeout_and_unused(
966 this: &WorkerGlobalScope,
967 handler: &str,
968 timeout: i32,
969 unused: &::js_sys::Array,
970 ) -> Result<i32, JsValue>;
971 # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setInterval)]
972 #[doc = "The `setInterval()` method."]
973 #[doc = ""]
974 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setInterval)"]
975 #[doc = ""]
976 #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
977 pub fn set_interval_with_str_and_timeout_and_unused_0(
978 this: &WorkerGlobalScope,
979 handler: &str,
980 timeout: i32,
981 ) -> Result<i32, JsValue>;
982 # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setInterval)]
983 #[doc = "The `setInterval()` method."]
984 #[doc = ""]
985 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setInterval)"]
986 #[doc = ""]
987 #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
988 pub fn set_interval_with_str_and_timeout_and_unused_1(
989 this: &WorkerGlobalScope,
990 handler: &str,
991 timeout: i32,
992 unused_1: &::wasm_bindgen::JsValue,
993 ) -> Result<i32, JsValue>;
994 # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setInterval)]
995 #[doc = "The `setInterval()` method."]
996 #[doc = ""]
997 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setInterval)"]
998 #[doc = ""]
999 #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
1000 pub fn set_interval_with_str_and_timeout_and_unused_2(
1001 this: &WorkerGlobalScope,
1002 handler: &str,
1003 timeout: i32,
1004 unused_1: &::wasm_bindgen::JsValue,
1005 unused_2: &::wasm_bindgen::JsValue,
1006 ) -> Result<i32, JsValue>;
1007 # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setInterval)]
1008 #[doc = "The `setInterval()` method."]
1009 #[doc = ""]
1010 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setInterval)"]
1011 #[doc = ""]
1012 #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
1013 pub fn set_interval_with_str_and_timeout_and_unused_3(
1014 this: &WorkerGlobalScope,
1015 handler: &str,
1016 timeout: i32,
1017 unused_1: &::wasm_bindgen::JsValue,
1018 unused_2: &::wasm_bindgen::JsValue,
1019 unused_3: &::wasm_bindgen::JsValue,
1020 ) -> Result<i32, JsValue>;
1021 # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setInterval)]
1022 #[doc = "The `setInterval()` method."]
1023 #[doc = ""]
1024 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setInterval)"]
1025 #[doc = ""]
1026 #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
1027 pub fn set_interval_with_str_and_timeout_and_unused_4(
1028 this: &WorkerGlobalScope,
1029 handler: &str,
1030 timeout: i32,
1031 unused_1: &::wasm_bindgen::JsValue,
1032 unused_2: &::wasm_bindgen::JsValue,
1033 unused_3: &::wasm_bindgen::JsValue,
1034 unused_4: &::wasm_bindgen::JsValue,
1035 ) -> Result<i32, JsValue>;
1036 # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setInterval)]
1037 #[doc = "The `setInterval()` method."]
1038 #[doc = ""]
1039 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setInterval)"]
1040 #[doc = ""]
1041 #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
1042 pub fn set_interval_with_str_and_timeout_and_unused_5(
1043 this: &WorkerGlobalScope,
1044 handler: &str,
1045 timeout: i32,
1046 unused_1: &::wasm_bindgen::JsValue,
1047 unused_2: &::wasm_bindgen::JsValue,
1048 unused_3: &::wasm_bindgen::JsValue,
1049 unused_4: &::wasm_bindgen::JsValue,
1050 unused_5: &::wasm_bindgen::JsValue,
1051 ) -> Result<i32, JsValue>;
1052 # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setInterval)]
1053 #[doc = "The `setInterval()` method."]
1054 #[doc = ""]
1055 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setInterval)"]
1056 #[doc = ""]
1057 #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
1058 pub fn set_interval_with_str_and_timeout_and_unused_6(
1059 this: &WorkerGlobalScope,
1060 handler: &str,
1061 timeout: i32,
1062 unused_1: &::wasm_bindgen::JsValue,
1063 unused_2: &::wasm_bindgen::JsValue,
1064 unused_3: &::wasm_bindgen::JsValue,
1065 unused_4: &::wasm_bindgen::JsValue,
1066 unused_5: &::wasm_bindgen::JsValue,
1067 unused_6: &::wasm_bindgen::JsValue,
1068 ) -> Result<i32, JsValue>;
1069 # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setInterval)]
1070 #[doc = "The `setInterval()` method."]
1071 #[doc = ""]
1072 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setInterval)"]
1073 #[doc = ""]
1074 #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
1075 pub fn set_interval_with_str_and_timeout_and_unused_7(
1076 this: &WorkerGlobalScope,
1077 handler: &str,
1078 timeout: i32,
1079 unused_1: &::wasm_bindgen::JsValue,
1080 unused_2: &::wasm_bindgen::JsValue,
1081 unused_3: &::wasm_bindgen::JsValue,
1082 unused_4: &::wasm_bindgen::JsValue,
1083 unused_5: &::wasm_bindgen::JsValue,
1084 unused_6: &::wasm_bindgen::JsValue,
1085 unused_7: &::wasm_bindgen::JsValue,
1086 ) -> Result<i32, JsValue>;
1087 # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setTimeout)]
1088 #[doc = "The `setTimeout()` method."]
1089 #[doc = ""]
1090 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setTimeout)"]
1091 #[doc = ""]
1092 #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
1093 pub fn set_timeout_with_callback(
1094 this: &WorkerGlobalScope,
1095 handler: &::js_sys::Function,
1096 ) -> Result<i32, JsValue>;
1097 # [wasm_bindgen (catch , method , structural , variadic , js_class = "WorkerGlobalScope" , js_name = setTimeout)]
1098 #[doc = "The `setTimeout()` method."]
1099 #[doc = ""]
1100 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setTimeout)"]
1101 #[doc = ""]
1102 #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
1103 pub fn set_timeout_with_callback_and_timeout_and_arguments(
1104 this: &WorkerGlobalScope,
1105 handler: &::js_sys::Function,
1106 timeout: i32,
1107 arguments: &::js_sys::Array,
1108 ) -> Result<i32, JsValue>;
1109 # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setTimeout)]
1110 #[doc = "The `setTimeout()` method."]
1111 #[doc = ""]
1112 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setTimeout)"]
1113 #[doc = ""]
1114 #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
1115 pub fn set_timeout_with_callback_and_timeout_and_arguments_0(
1116 this: &WorkerGlobalScope,
1117 handler: &::js_sys::Function,
1118 timeout: i32,
1119 ) -> Result<i32, JsValue>;
1120 # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setTimeout)]
1121 #[doc = "The `setTimeout()` method."]
1122 #[doc = ""]
1123 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setTimeout)"]
1124 #[doc = ""]
1125 #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
1126 pub fn set_timeout_with_callback_and_timeout_and_arguments_1(
1127 this: &WorkerGlobalScope,
1128 handler: &::js_sys::Function,
1129 timeout: i32,
1130 arguments_1: &::wasm_bindgen::JsValue,
1131 ) -> Result<i32, JsValue>;
1132 # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setTimeout)]
1133 #[doc = "The `setTimeout()` method."]
1134 #[doc = ""]
1135 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setTimeout)"]
1136 #[doc = ""]
1137 #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
1138 pub fn set_timeout_with_callback_and_timeout_and_arguments_2(
1139 this: &WorkerGlobalScope,
1140 handler: &::js_sys::Function,
1141 timeout: i32,
1142 arguments_1: &::wasm_bindgen::JsValue,
1143 arguments_2: &::wasm_bindgen::JsValue,
1144 ) -> Result<i32, JsValue>;
1145 # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setTimeout)]
1146 #[doc = "The `setTimeout()` method."]
1147 #[doc = ""]
1148 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setTimeout)"]
1149 #[doc = ""]
1150 #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
1151 pub fn set_timeout_with_callback_and_timeout_and_arguments_3(
1152 this: &WorkerGlobalScope,
1153 handler: &::js_sys::Function,
1154 timeout: i32,
1155 arguments_1: &::wasm_bindgen::JsValue,
1156 arguments_2: &::wasm_bindgen::JsValue,
1157 arguments_3: &::wasm_bindgen::JsValue,
1158 ) -> Result<i32, JsValue>;
1159 # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setTimeout)]
1160 #[doc = "The `setTimeout()` method."]
1161 #[doc = ""]
1162 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setTimeout)"]
1163 #[doc = ""]
1164 #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
1165 pub fn set_timeout_with_callback_and_timeout_and_arguments_4(
1166 this: &WorkerGlobalScope,
1167 handler: &::js_sys::Function,
1168 timeout: i32,
1169 arguments_1: &::wasm_bindgen::JsValue,
1170 arguments_2: &::wasm_bindgen::JsValue,
1171 arguments_3: &::wasm_bindgen::JsValue,
1172 arguments_4: &::wasm_bindgen::JsValue,
1173 ) -> Result<i32, JsValue>;
1174 # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setTimeout)]
1175 #[doc = "The `setTimeout()` method."]
1176 #[doc = ""]
1177 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setTimeout)"]
1178 #[doc = ""]
1179 #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
1180 pub fn set_timeout_with_callback_and_timeout_and_arguments_5(
1181 this: &WorkerGlobalScope,
1182 handler: &::js_sys::Function,
1183 timeout: i32,
1184 arguments_1: &::wasm_bindgen::JsValue,
1185 arguments_2: &::wasm_bindgen::JsValue,
1186 arguments_3: &::wasm_bindgen::JsValue,
1187 arguments_4: &::wasm_bindgen::JsValue,
1188 arguments_5: &::wasm_bindgen::JsValue,
1189 ) -> Result<i32, JsValue>;
1190 # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setTimeout)]
1191 #[doc = "The `setTimeout()` method."]
1192 #[doc = ""]
1193 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setTimeout)"]
1194 #[doc = ""]
1195 #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
1196 pub fn set_timeout_with_callback_and_timeout_and_arguments_6(
1197 this: &WorkerGlobalScope,
1198 handler: &::js_sys::Function,
1199 timeout: i32,
1200 arguments_1: &::wasm_bindgen::JsValue,
1201 arguments_2: &::wasm_bindgen::JsValue,
1202 arguments_3: &::wasm_bindgen::JsValue,
1203 arguments_4: &::wasm_bindgen::JsValue,
1204 arguments_5: &::wasm_bindgen::JsValue,
1205 arguments_6: &::wasm_bindgen::JsValue,
1206 ) -> Result<i32, JsValue>;
1207 # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setTimeout)]
1208 #[doc = "The `setTimeout()` method."]
1209 #[doc = ""]
1210 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setTimeout)"]
1211 #[doc = ""]
1212 #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
1213 pub fn set_timeout_with_callback_and_timeout_and_arguments_7(
1214 this: &WorkerGlobalScope,
1215 handler: &::js_sys::Function,
1216 timeout: i32,
1217 arguments_1: &::wasm_bindgen::JsValue,
1218 arguments_2: &::wasm_bindgen::JsValue,
1219 arguments_3: &::wasm_bindgen::JsValue,
1220 arguments_4: &::wasm_bindgen::JsValue,
1221 arguments_5: &::wasm_bindgen::JsValue,
1222 arguments_6: &::wasm_bindgen::JsValue,
1223 arguments_7: &::wasm_bindgen::JsValue,
1224 ) -> Result<i32, JsValue>;
1225 # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setTimeout)]
1226 #[doc = "The `setTimeout()` method."]
1227 #[doc = ""]
1228 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setTimeout)"]
1229 #[doc = ""]
1230 #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
1231 pub fn set_timeout_with_str(this: &WorkerGlobalScope, handler: &str) -> Result<i32, JsValue>;
1232 # [wasm_bindgen (catch , method , structural , variadic , js_class = "WorkerGlobalScope" , js_name = setTimeout)]
1233 #[doc = "The `setTimeout()` method."]
1234 #[doc = ""]
1235 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setTimeout)"]
1236 #[doc = ""]
1237 #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
1238 pub fn set_timeout_with_str_and_timeout_and_unused(
1239 this: &WorkerGlobalScope,
1240 handler: &str,
1241 timeout: i32,
1242 unused: &::js_sys::Array,
1243 ) -> Result<i32, JsValue>;
1244 # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setTimeout)]
1245 #[doc = "The `setTimeout()` method."]
1246 #[doc = ""]
1247 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setTimeout)"]
1248 #[doc = ""]
1249 #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
1250 pub fn set_timeout_with_str_and_timeout_and_unused_0(
1251 this: &WorkerGlobalScope,
1252 handler: &str,
1253 timeout: i32,
1254 ) -> Result<i32, JsValue>;
1255 # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setTimeout)]
1256 #[doc = "The `setTimeout()` method."]
1257 #[doc = ""]
1258 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setTimeout)"]
1259 #[doc = ""]
1260 #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
1261 pub fn set_timeout_with_str_and_timeout_and_unused_1(
1262 this: &WorkerGlobalScope,
1263 handler: &str,
1264 timeout: i32,
1265 unused_1: &::wasm_bindgen::JsValue,
1266 ) -> Result<i32, JsValue>;
1267 # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setTimeout)]
1268 #[doc = "The `setTimeout()` method."]
1269 #[doc = ""]
1270 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setTimeout)"]
1271 #[doc = ""]
1272 #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
1273 pub fn set_timeout_with_str_and_timeout_and_unused_2(
1274 this: &WorkerGlobalScope,
1275 handler: &str,
1276 timeout: i32,
1277 unused_1: &::wasm_bindgen::JsValue,
1278 unused_2: &::wasm_bindgen::JsValue,
1279 ) -> Result<i32, JsValue>;
1280 # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setTimeout)]
1281 #[doc = "The `setTimeout()` method."]
1282 #[doc = ""]
1283 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setTimeout)"]
1284 #[doc = ""]
1285 #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
1286 pub fn set_timeout_with_str_and_timeout_and_unused_3(
1287 this: &WorkerGlobalScope,
1288 handler: &str,
1289 timeout: i32,
1290 unused_1: &::wasm_bindgen::JsValue,
1291 unused_2: &::wasm_bindgen::JsValue,
1292 unused_3: &::wasm_bindgen::JsValue,
1293 ) -> Result<i32, JsValue>;
1294 # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setTimeout)]
1295 #[doc = "The `setTimeout()` method."]
1296 #[doc = ""]
1297 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setTimeout)"]
1298 #[doc = ""]
1299 #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
1300 pub fn set_timeout_with_str_and_timeout_and_unused_4(
1301 this: &WorkerGlobalScope,
1302 handler: &str,
1303 timeout: i32,
1304 unused_1: &::wasm_bindgen::JsValue,
1305 unused_2: &::wasm_bindgen::JsValue,
1306 unused_3: &::wasm_bindgen::JsValue,
1307 unused_4: &::wasm_bindgen::JsValue,
1308 ) -> Result<i32, JsValue>;
1309 # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setTimeout)]
1310 #[doc = "The `setTimeout()` method."]
1311 #[doc = ""]
1312 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setTimeout)"]
1313 #[doc = ""]
1314 #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
1315 pub fn set_timeout_with_str_and_timeout_and_unused_5(
1316 this: &WorkerGlobalScope,
1317 handler: &str,
1318 timeout: i32,
1319 unused_1: &::wasm_bindgen::JsValue,
1320 unused_2: &::wasm_bindgen::JsValue,
1321 unused_3: &::wasm_bindgen::JsValue,
1322 unused_4: &::wasm_bindgen::JsValue,
1323 unused_5: &::wasm_bindgen::JsValue,
1324 ) -> Result<i32, JsValue>;
1325 # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setTimeout)]
1326 #[doc = "The `setTimeout()` method."]
1327 #[doc = ""]
1328 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setTimeout)"]
1329 #[doc = ""]
1330 #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
1331 pub fn set_timeout_with_str_and_timeout_and_unused_6(
1332 this: &WorkerGlobalScope,
1333 handler: &str,
1334 timeout: i32,
1335 unused_1: &::wasm_bindgen::JsValue,
1336 unused_2: &::wasm_bindgen::JsValue,
1337 unused_3: &::wasm_bindgen::JsValue,
1338 unused_4: &::wasm_bindgen::JsValue,
1339 unused_5: &::wasm_bindgen::JsValue,
1340 unused_6: &::wasm_bindgen::JsValue,
1341 ) -> Result<i32, JsValue>;
1342 # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setTimeout)]
1343 #[doc = "The `setTimeout()` method."]
1344 #[doc = ""]
1345 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setTimeout)"]
1346 #[doc = ""]
1347 #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
1348 pub fn set_timeout_with_str_and_timeout_and_unused_7(
1349 this: &WorkerGlobalScope,
1350 handler: &str,
1351 timeout: i32,
1352 unused_1: &::wasm_bindgen::JsValue,
1353 unused_2: &::wasm_bindgen::JsValue,
1354 unused_3: &::wasm_bindgen::JsValue,
1355 unused_4: &::wasm_bindgen::JsValue,
1356 unused_5: &::wasm_bindgen::JsValue,
1357 unused_6: &::wasm_bindgen::JsValue,
1358 unused_7: &::wasm_bindgen::JsValue,
1359 ) -> Result<i32, JsValue>;
1360}