Skip to main content

web_sys/features/
gen_WorkerGlobalScope.rs

1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[wasm_bindgen]
6extern "C" {
7    #[wasm_bindgen(
8        extends = "EventTarget",
9        extends = "::js_sys::Object",
10        js_name = "WorkerGlobalScope",
11        typescript_type = "WorkerGlobalScope"
12    )]
13    #[derive(Debug, Clone, PartialEq, Eq)]
14    #[doc = "The `WorkerGlobalScope` class."]
15    #[doc = ""]
16    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope)"]
17    #[doc = ""]
18    #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
19    pub type WorkerGlobalScope;
20    #[wasm_bindgen(method, getter, js_class = "WorkerGlobalScope", js_name = "self")]
21    #[doc = "Getter for the `self` field of this object."]
22    #[doc = ""]
23    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/self)"]
24    #[doc = ""]
25    #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
26    pub fn self_(this: &WorkerGlobalScope) -> WorkerGlobalScope;
27    #[cfg(feature = "WorkerLocation")]
28    #[wasm_bindgen(method, getter, js_class = "WorkerGlobalScope", js_name = "location")]
29    #[doc = "Getter for the `location` field of this object."]
30    #[doc = ""]
31    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/location)"]
32    #[doc = ""]
33    #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`, `WorkerLocation`*"]
34    pub fn location(this: &WorkerGlobalScope) -> WorkerLocation;
35    #[cfg(feature = "WorkerNavigator")]
36    #[wasm_bindgen(method, getter, js_class = "WorkerGlobalScope", js_name = "navigator")]
37    #[doc = "Getter for the `navigator` field of this object."]
38    #[doc = ""]
39    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/navigator)"]
40    #[doc = ""]
41    #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`, `WorkerNavigator`*"]
42    pub fn navigator(this: &WorkerGlobalScope) -> WorkerNavigator;
43    #[wasm_bindgen(method, getter, js_class = "WorkerGlobalScope", js_name = "onerror")]
44    #[doc = "Getter for the `onerror` field of this object."]
45    #[doc = ""]
46    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/onerror)"]
47    #[doc = ""]
48    #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
49    pub fn onerror(this: &WorkerGlobalScope) -> Option<::js_sys::Function>;
50    #[wasm_bindgen(method, setter, js_class = "WorkerGlobalScope", js_name = "onerror")]
51    #[doc = "Setter for the `onerror` field of this object."]
52    #[doc = ""]
53    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/onerror)"]
54    #[doc = ""]
55    #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
56    pub fn set_onerror(this: &WorkerGlobalScope, value: Option<&::js_sys::Function>);
57    #[wasm_bindgen(method, getter, js_class = "WorkerGlobalScope", js_name = "onoffline")]
58    #[doc = "Getter for the `onoffline` field of this object."]
59    #[doc = ""]
60    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/onoffline)"]
61    #[doc = ""]
62    #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
63    pub fn onoffline(this: &WorkerGlobalScope) -> Option<::js_sys::Function>;
64    #[wasm_bindgen(method, setter, js_class = "WorkerGlobalScope", js_name = "onoffline")]
65    #[doc = "Setter for the `onoffline` field of this object."]
66    #[doc = ""]
67    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/onoffline)"]
68    #[doc = ""]
69    #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
70    pub fn set_onoffline(this: &WorkerGlobalScope, value: Option<&::js_sys::Function>);
71    #[wasm_bindgen(method, getter, js_class = "WorkerGlobalScope", js_name = "ononline")]
72    #[doc = "Getter for the `ononline` field of this object."]
73    #[doc = ""]
74    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/ononline)"]
75    #[doc = ""]
76    #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
77    pub fn ononline(this: &WorkerGlobalScope) -> Option<::js_sys::Function>;
78    #[wasm_bindgen(method, setter, js_class = "WorkerGlobalScope", js_name = "ononline")]
79    #[doc = "Setter for the `ononline` field of this object."]
80    #[doc = ""]
81    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/ononline)"]
82    #[doc = ""]
83    #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
84    pub fn set_ononline(this: &WorkerGlobalScope, value: Option<&::js_sys::Function>);
85    #[cfg(feature = "Crypto")]
86    #[wasm_bindgen(
87        catch,
88        method,
89        getter,
90        js_class = "WorkerGlobalScope",
91        js_name = "crypto"
92    )]
93    #[doc = "Getter for the `crypto` field of this object."]
94    #[doc = ""]
95    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/crypto)"]
96    #[doc = ""]
97    #[doc = "*This API requires the following crate features to be activated: `Crypto`, `WorkerGlobalScope`*"]
98    pub fn crypto(this: &WorkerGlobalScope) -> Result<Crypto, JsValue>;
99    #[cfg(feature = "IdbFactory")]
100    #[wasm_bindgen(
101        catch,
102        method,
103        getter,
104        js_class = "WorkerGlobalScope",
105        js_name = "indexedDB"
106    )]
107    #[doc = "Getter for the `indexedDB` field of this object."]
108    #[doc = ""]
109    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/indexedDB)"]
110    #[doc = ""]
111    #[doc = "*This API requires the following crate features to be activated: `IdbFactory`, `WorkerGlobalScope`*"]
112    pub fn indexed_db(this: &WorkerGlobalScope) -> Result<Option<IdbFactory>, JsValue>;
113    #[cfg(feature = "Performance")]
114    #[wasm_bindgen(
115        method,
116        getter,
117        js_class = "WorkerGlobalScope",
118        js_name = "performance"
119    )]
120    #[doc = "Getter for the `performance` field of this object."]
121    #[doc = ""]
122    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/performance)"]
123    #[doc = ""]
124    #[doc = "*This API requires the following crate features to be activated: `Performance`, `WorkerGlobalScope`*"]
125    pub fn performance(this: &WorkerGlobalScope) -> Option<Performance>;
126    #[wasm_bindgen(method, getter, js_class = "WorkerGlobalScope", js_name = "origin")]
127    #[doc = "Getter for the `origin` field of this object."]
128    #[doc = ""]
129    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/origin)"]
130    #[doc = ""]
131    #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
132    pub fn origin(this: &WorkerGlobalScope) -> ::alloc::string::String;
133    #[wasm_bindgen(
134        method,
135        getter,
136        js_class = "WorkerGlobalScope",
137        js_name = "isSecureContext"
138    )]
139    #[doc = "Getter for the `isSecureContext` field of this object."]
140    #[doc = ""]
141    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/isSecureContext)"]
142    #[doc = ""]
143    #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
144    pub fn is_secure_context(this: &WorkerGlobalScope) -> bool;
145    #[cfg(feature = "CacheStorage")]
146    #[wasm_bindgen(
147        catch,
148        method,
149        getter,
150        js_class = "WorkerGlobalScope",
151        js_name = "caches"
152    )]
153    #[doc = "Getter for the `caches` field of this object."]
154    #[doc = ""]
155    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/caches)"]
156    #[doc = ""]
157    #[doc = "*This API requires the following crate features to be activated: `CacheStorage`, `WorkerGlobalScope`*"]
158    pub fn caches(this: &WorkerGlobalScope) -> Result<CacheStorage, JsValue>;
159    #[cfg(web_sys_unstable_apis)]
160    #[cfg(feature = "Scheduler")]
161    #[wasm_bindgen(method, getter, js_class = "WorkerGlobalScope", js_name = "scheduler")]
162    #[doc = "Getter for the `scheduler` field of this object."]
163    #[doc = ""]
164    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/scheduler)"]
165    #[doc = ""]
166    #[doc = "*This API requires the following crate features to be activated: `Scheduler`, `WorkerGlobalScope`*"]
167    #[doc = ""]
168    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
169    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
170    pub fn scheduler(this: &WorkerGlobalScope) -> Scheduler;
171    #[wasm_bindgen(
172        catch,
173        method,
174        variadic,
175        js_class = "WorkerGlobalScope",
176        js_name = "importScripts"
177    )]
178    #[doc = "The `importScripts()` method."]
179    #[doc = ""]
180    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/importScripts)"]
181    #[doc = ""]
182    #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
183    pub fn import_scripts(this: &WorkerGlobalScope, urls: &::js_sys::Array) -> Result<(), JsValue>;
184    #[wasm_bindgen(
185        catch,
186        method,
187        js_class = "WorkerGlobalScope",
188        js_name = "importScripts"
189    )]
190    #[doc = "The `importScripts()` method."]
191    #[doc = ""]
192    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/importScripts)"]
193    #[doc = ""]
194    #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
195    pub fn import_scripts_0(this: &WorkerGlobalScope) -> Result<(), JsValue>;
196    #[wasm_bindgen(
197        catch,
198        method,
199        js_class = "WorkerGlobalScope",
200        js_name = "importScripts"
201    )]
202    #[doc = "The `importScripts()` method."]
203    #[doc = ""]
204    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/importScripts)"]
205    #[doc = ""]
206    #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
207    pub fn import_scripts_1(this: &WorkerGlobalScope, urls_1: &str) -> Result<(), JsValue>;
208    #[wasm_bindgen(
209        catch,
210        method,
211        js_class = "WorkerGlobalScope",
212        js_name = "importScripts"
213    )]
214    #[doc = "The `importScripts()` method."]
215    #[doc = ""]
216    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/importScripts)"]
217    #[doc = ""]
218    #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
219    pub fn import_scripts_2(
220        this: &WorkerGlobalScope,
221        urls_1: &str,
222        urls_2: &str,
223    ) -> Result<(), JsValue>;
224    #[wasm_bindgen(
225        catch,
226        method,
227        js_class = "WorkerGlobalScope",
228        js_name = "importScripts"
229    )]
230    #[doc = "The `importScripts()` method."]
231    #[doc = ""]
232    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/importScripts)"]
233    #[doc = ""]
234    #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
235    pub fn import_scripts_3(
236        this: &WorkerGlobalScope,
237        urls_1: &str,
238        urls_2: &str,
239        urls_3: &str,
240    ) -> Result<(), JsValue>;
241    #[wasm_bindgen(
242        catch,
243        method,
244        js_class = "WorkerGlobalScope",
245        js_name = "importScripts"
246    )]
247    #[doc = "The `importScripts()` method."]
248    #[doc = ""]
249    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/importScripts)"]
250    #[doc = ""]
251    #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
252    pub fn import_scripts_4(
253        this: &WorkerGlobalScope,
254        urls_1: &str,
255        urls_2: &str,
256        urls_3: &str,
257        urls_4: &str,
258    ) -> Result<(), JsValue>;
259    #[wasm_bindgen(
260        catch,
261        method,
262        js_class = "WorkerGlobalScope",
263        js_name = "importScripts"
264    )]
265    #[doc = "The `importScripts()` method."]
266    #[doc = ""]
267    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/importScripts)"]
268    #[doc = ""]
269    #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
270    pub fn import_scripts_5(
271        this: &WorkerGlobalScope,
272        urls_1: &str,
273        urls_2: &str,
274        urls_3: &str,
275        urls_4: &str,
276        urls_5: &str,
277    ) -> Result<(), JsValue>;
278    #[wasm_bindgen(
279        catch,
280        method,
281        js_class = "WorkerGlobalScope",
282        js_name = "importScripts"
283    )]
284    #[doc = "The `importScripts()` method."]
285    #[doc = ""]
286    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/importScripts)"]
287    #[doc = ""]
288    #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
289    pub fn import_scripts_6(
290        this: &WorkerGlobalScope,
291        urls_1: &str,
292        urls_2: &str,
293        urls_3: &str,
294        urls_4: &str,
295        urls_5: &str,
296        urls_6: &str,
297    ) -> Result<(), JsValue>;
298    #[wasm_bindgen(
299        catch,
300        method,
301        js_class = "WorkerGlobalScope",
302        js_name = "importScripts"
303    )]
304    #[doc = "The `importScripts()` method."]
305    #[doc = ""]
306    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/importScripts)"]
307    #[doc = ""]
308    #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
309    pub fn import_scripts_7(
310        this: &WorkerGlobalScope,
311        urls_1: &str,
312        urls_2: &str,
313        urls_3: &str,
314        urls_4: &str,
315        urls_5: &str,
316        urls_6: &str,
317        urls_7: &str,
318    ) -> Result<(), JsValue>;
319    #[wasm_bindgen(catch, method, js_class = "WorkerGlobalScope")]
320    #[doc = "The `atob()` method."]
321    #[doc = ""]
322    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/atob)"]
323    #[doc = ""]
324    #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
325    pub fn atob(this: &WorkerGlobalScope, atob: &str) -> Result<::alloc::string::String, JsValue>;
326    #[wasm_bindgen(catch, method, js_class = "WorkerGlobalScope")]
327    #[doc = "The `btoa()` method."]
328    #[doc = ""]
329    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/btoa)"]
330    #[doc = ""]
331    #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
332    pub fn btoa(this: &WorkerGlobalScope, btoa: &str) -> Result<::alloc::string::String, JsValue>;
333    #[wasm_bindgen(method, js_class = "WorkerGlobalScope", js_name = "clearInterval")]
334    #[doc = "The `clearInterval()` method."]
335    #[doc = ""]
336    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/clearInterval)"]
337    #[doc = ""]
338    #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
339    pub fn clear_interval(this: &WorkerGlobalScope);
340    #[wasm_bindgen(method, js_class = "WorkerGlobalScope", js_name = "clearInterval")]
341    #[doc = "The `clearInterval()` method."]
342    #[doc = ""]
343    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/clearInterval)"]
344    #[doc = ""]
345    #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
346    pub fn clear_interval_with_handle(this: &WorkerGlobalScope, handle: i32);
347    #[wasm_bindgen(method, js_class = "WorkerGlobalScope", js_name = "clearTimeout")]
348    #[doc = "The `clearTimeout()` method."]
349    #[doc = ""]
350    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/clearTimeout)"]
351    #[doc = ""]
352    #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
353    pub fn clear_timeout(this: &WorkerGlobalScope);
354    #[wasm_bindgen(method, js_class = "WorkerGlobalScope", js_name = "clearTimeout")]
355    #[doc = "The `clearTimeout()` method."]
356    #[doc = ""]
357    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/clearTimeout)"]
358    #[doc = ""]
359    #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
360    pub fn clear_timeout_with_handle(this: &WorkerGlobalScope, handle: i32);
361    #[cfg(feature = "HtmlImageElement")]
362    #[wasm_bindgen(
363        catch,
364        method,
365        js_class = "WorkerGlobalScope",
366        js_name = "createImageBitmap"
367    )]
368    #[doc = "The `createImageBitmap()` method."]
369    #[doc = ""]
370    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/createImageBitmap)"]
371    #[doc = ""]
372    #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`, `WorkerGlobalScope`*"]
373    pub fn create_image_bitmap_with_html_image_element(
374        this: &WorkerGlobalScope,
375        a_image: &HtmlImageElement,
376    ) -> Result<::js_sys::Promise, JsValue>;
377    #[cfg(feature = "SvgImageElement")]
378    #[wasm_bindgen(
379        catch,
380        method,
381        js_class = "WorkerGlobalScope",
382        js_name = "createImageBitmap"
383    )]
384    #[doc = "The `createImageBitmap()` method."]
385    #[doc = ""]
386    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/createImageBitmap)"]
387    #[doc = ""]
388    #[doc = "*This API requires the following crate features to be activated: `SvgImageElement`, `WorkerGlobalScope`*"]
389    pub fn create_image_bitmap_with_svg_image_element(
390        this: &WorkerGlobalScope,
391        a_image: &SvgImageElement,
392    ) -> Result<::js_sys::Promise, JsValue>;
393    #[cfg(feature = "HtmlCanvasElement")]
394    #[wasm_bindgen(
395        catch,
396        method,
397        js_class = "WorkerGlobalScope",
398        js_name = "createImageBitmap"
399    )]
400    #[doc = "The `createImageBitmap()` method."]
401    #[doc = ""]
402    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/createImageBitmap)"]
403    #[doc = ""]
404    #[doc = "*This API requires the following crate features to be activated: `HtmlCanvasElement`, `WorkerGlobalScope`*"]
405    pub fn create_image_bitmap_with_html_canvas_element(
406        this: &WorkerGlobalScope,
407        a_image: &HtmlCanvasElement,
408    ) -> Result<::js_sys::Promise, JsValue>;
409    #[cfg(feature = "HtmlVideoElement")]
410    #[wasm_bindgen(
411        catch,
412        method,
413        js_class = "WorkerGlobalScope",
414        js_name = "createImageBitmap"
415    )]
416    #[doc = "The `createImageBitmap()` method."]
417    #[doc = ""]
418    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/createImageBitmap)"]
419    #[doc = ""]
420    #[doc = "*This API requires the following crate features to be activated: `HtmlVideoElement`, `WorkerGlobalScope`*"]
421    pub fn create_image_bitmap_with_html_video_element(
422        this: &WorkerGlobalScope,
423        a_image: &HtmlVideoElement,
424    ) -> Result<::js_sys::Promise, JsValue>;
425    #[cfg(feature = "ImageBitmap")]
426    #[wasm_bindgen(
427        catch,
428        method,
429        js_class = "WorkerGlobalScope",
430        js_name = "createImageBitmap"
431    )]
432    #[doc = "The `createImageBitmap()` method."]
433    #[doc = ""]
434    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/createImageBitmap)"]
435    #[doc = ""]
436    #[doc = "*This API requires the following crate features to be activated: `ImageBitmap`, `WorkerGlobalScope`*"]
437    pub fn create_image_bitmap_with_image_bitmap(
438        this: &WorkerGlobalScope,
439        a_image: &ImageBitmap,
440    ) -> Result<::js_sys::Promise, JsValue>;
441    #[cfg(feature = "OffscreenCanvas")]
442    #[wasm_bindgen(
443        catch,
444        method,
445        js_class = "WorkerGlobalScope",
446        js_name = "createImageBitmap"
447    )]
448    #[doc = "The `createImageBitmap()` method."]
449    #[doc = ""]
450    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/createImageBitmap)"]
451    #[doc = ""]
452    #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvas`, `WorkerGlobalScope`*"]
453    pub fn create_image_bitmap_with_offscreen_canvas(
454        this: &WorkerGlobalScope,
455        a_image: &OffscreenCanvas,
456    ) -> Result<::js_sys::Promise, JsValue>;
457    #[cfg(all(feature = "ImageBitmap", feature = "VideoFrame",))]
458    #[wasm_bindgen(
459        catch,
460        method,
461        js_class = "WorkerGlobalScope",
462        js_name = "createImageBitmap"
463    )]
464    #[doc = "The `createImageBitmap()` method."]
465    #[doc = ""]
466    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/createImageBitmap)"]
467    #[doc = ""]
468    #[doc = "*This API requires the following crate features to be activated: `ImageBitmap`, `VideoFrame`, `WorkerGlobalScope`*"]
469    pub fn create_image_bitmap_with_video_frame(
470        this: &WorkerGlobalScope,
471        a_image: &VideoFrame,
472    ) -> Result<::js_sys::Promise<ImageBitmap>, JsValue>;
473    #[cfg(feature = "Blob")]
474    #[wasm_bindgen(
475        catch,
476        method,
477        js_class = "WorkerGlobalScope",
478        js_name = "createImageBitmap"
479    )]
480    #[doc = "The `createImageBitmap()` method."]
481    #[doc = ""]
482    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/createImageBitmap)"]
483    #[doc = ""]
484    #[doc = "*This API requires the following crate features to be activated: `Blob`, `WorkerGlobalScope`*"]
485    pub fn create_image_bitmap_with_blob(
486        this: &WorkerGlobalScope,
487        a_image: &Blob,
488    ) -> Result<::js_sys::Promise, JsValue>;
489    #[cfg(feature = "ImageData")]
490    #[wasm_bindgen(
491        catch,
492        method,
493        js_class = "WorkerGlobalScope",
494        js_name = "createImageBitmap"
495    )]
496    #[doc = "The `createImageBitmap()` method."]
497    #[doc = ""]
498    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/createImageBitmap)"]
499    #[doc = ""]
500    #[doc = "*This API requires the following crate features to be activated: `ImageData`, `WorkerGlobalScope`*"]
501    pub fn create_image_bitmap_with_image_data(
502        this: &WorkerGlobalScope,
503        a_image: &ImageData,
504    ) -> Result<::js_sys::Promise, JsValue>;
505    #[cfg(all(feature = "HtmlImageElement", feature = "ImageBitmapOptions",))]
506    #[wasm_bindgen(
507        catch,
508        method,
509        js_class = "WorkerGlobalScope",
510        js_name = "createImageBitmap"
511    )]
512    #[doc = "The `createImageBitmap()` method."]
513    #[doc = ""]
514    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/createImageBitmap)"]
515    #[doc = ""]
516    #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`, `ImageBitmapOptions`, `WorkerGlobalScope`*"]
517    pub fn create_image_bitmap_with_html_image_element_and_image_bitmap_options(
518        this: &WorkerGlobalScope,
519        a_image: &HtmlImageElement,
520        a_options: &ImageBitmapOptions,
521    ) -> Result<::js_sys::Promise, JsValue>;
522    #[cfg(all(feature = "ImageBitmapOptions", feature = "SvgImageElement",))]
523    #[wasm_bindgen(
524        catch,
525        method,
526        js_class = "WorkerGlobalScope",
527        js_name = "createImageBitmap"
528    )]
529    #[doc = "The `createImageBitmap()` method."]
530    #[doc = ""]
531    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/createImageBitmap)"]
532    #[doc = ""]
533    #[doc = "*This API requires the following crate features to be activated: `ImageBitmapOptions`, `SvgImageElement`, `WorkerGlobalScope`*"]
534    pub fn create_image_bitmap_with_svg_image_element_and_image_bitmap_options(
535        this: &WorkerGlobalScope,
536        a_image: &SvgImageElement,
537        a_options: &ImageBitmapOptions,
538    ) -> Result<::js_sys::Promise, JsValue>;
539    #[cfg(all(feature = "HtmlCanvasElement", feature = "ImageBitmapOptions",))]
540    #[wasm_bindgen(
541        catch,
542        method,
543        js_class = "WorkerGlobalScope",
544        js_name = "createImageBitmap"
545    )]
546    #[doc = "The `createImageBitmap()` method."]
547    #[doc = ""]
548    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/createImageBitmap)"]
549    #[doc = ""]
550    #[doc = "*This API requires the following crate features to be activated: `HtmlCanvasElement`, `ImageBitmapOptions`, `WorkerGlobalScope`*"]
551    pub fn create_image_bitmap_with_html_canvas_element_and_image_bitmap_options(
552        this: &WorkerGlobalScope,
553        a_image: &HtmlCanvasElement,
554        a_options: &ImageBitmapOptions,
555    ) -> Result<::js_sys::Promise, JsValue>;
556    #[cfg(all(feature = "HtmlVideoElement", feature = "ImageBitmapOptions",))]
557    #[wasm_bindgen(
558        catch,
559        method,
560        js_class = "WorkerGlobalScope",
561        js_name = "createImageBitmap"
562    )]
563    #[doc = "The `createImageBitmap()` method."]
564    #[doc = ""]
565    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/createImageBitmap)"]
566    #[doc = ""]
567    #[doc = "*This API requires the following crate features to be activated: `HtmlVideoElement`, `ImageBitmapOptions`, `WorkerGlobalScope`*"]
568    pub fn create_image_bitmap_with_html_video_element_and_image_bitmap_options(
569        this: &WorkerGlobalScope,
570        a_image: &HtmlVideoElement,
571        a_options: &ImageBitmapOptions,
572    ) -> Result<::js_sys::Promise, JsValue>;
573    #[cfg(all(feature = "ImageBitmap", feature = "ImageBitmapOptions",))]
574    #[wasm_bindgen(
575        catch,
576        method,
577        js_class = "WorkerGlobalScope",
578        js_name = "createImageBitmap"
579    )]
580    #[doc = "The `createImageBitmap()` method."]
581    #[doc = ""]
582    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/createImageBitmap)"]
583    #[doc = ""]
584    #[doc = "*This API requires the following crate features to be activated: `ImageBitmap`, `ImageBitmapOptions`, `WorkerGlobalScope`*"]
585    pub fn create_image_bitmap_with_image_bitmap_and_image_bitmap_options(
586        this: &WorkerGlobalScope,
587        a_image: &ImageBitmap,
588        a_options: &ImageBitmapOptions,
589    ) -> Result<::js_sys::Promise, JsValue>;
590    #[cfg(all(feature = "ImageBitmapOptions", feature = "OffscreenCanvas",))]
591    #[wasm_bindgen(
592        catch,
593        method,
594        js_class = "WorkerGlobalScope",
595        js_name = "createImageBitmap"
596    )]
597    #[doc = "The `createImageBitmap()` method."]
598    #[doc = ""]
599    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/createImageBitmap)"]
600    #[doc = ""]
601    #[doc = "*This API requires the following crate features to be activated: `ImageBitmapOptions`, `OffscreenCanvas`, `WorkerGlobalScope`*"]
602    pub fn create_image_bitmap_with_offscreen_canvas_and_image_bitmap_options(
603        this: &WorkerGlobalScope,
604        a_image: &OffscreenCanvas,
605        a_options: &ImageBitmapOptions,
606    ) -> Result<::js_sys::Promise, JsValue>;
607    #[cfg(all(
608        feature = "ImageBitmap",
609        feature = "ImageBitmapOptions",
610        feature = "VideoFrame",
611    ))]
612    #[wasm_bindgen(
613        catch,
614        method,
615        js_class = "WorkerGlobalScope",
616        js_name = "createImageBitmap"
617    )]
618    #[doc = "The `createImageBitmap()` method."]
619    #[doc = ""]
620    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/createImageBitmap)"]
621    #[doc = ""]
622    #[doc = "*This API requires the following crate features to be activated: `ImageBitmap`, `ImageBitmapOptions`, `VideoFrame`, `WorkerGlobalScope`*"]
623    pub fn create_image_bitmap_with_video_frame_and_image_bitmap_options(
624        this: &WorkerGlobalScope,
625        a_image: &VideoFrame,
626        a_options: &ImageBitmapOptions,
627    ) -> Result<::js_sys::Promise<ImageBitmap>, JsValue>;
628    #[cfg(all(feature = "Blob", feature = "ImageBitmapOptions",))]
629    #[wasm_bindgen(
630        catch,
631        method,
632        js_class = "WorkerGlobalScope",
633        js_name = "createImageBitmap"
634    )]
635    #[doc = "The `createImageBitmap()` method."]
636    #[doc = ""]
637    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/createImageBitmap)"]
638    #[doc = ""]
639    #[doc = "*This API requires the following crate features to be activated: `Blob`, `ImageBitmapOptions`, `WorkerGlobalScope`*"]
640    pub fn create_image_bitmap_with_blob_and_image_bitmap_options(
641        this: &WorkerGlobalScope,
642        a_image: &Blob,
643        a_options: &ImageBitmapOptions,
644    ) -> Result<::js_sys::Promise, JsValue>;
645    #[cfg(all(feature = "ImageBitmapOptions", feature = "ImageData",))]
646    #[wasm_bindgen(
647        catch,
648        method,
649        js_class = "WorkerGlobalScope",
650        js_name = "createImageBitmap"
651    )]
652    #[doc = "The `createImageBitmap()` method."]
653    #[doc = ""]
654    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/createImageBitmap)"]
655    #[doc = ""]
656    #[doc = "*This API requires the following crate features to be activated: `ImageBitmapOptions`, `ImageData`, `WorkerGlobalScope`*"]
657    pub fn create_image_bitmap_with_image_data_and_image_bitmap_options(
658        this: &WorkerGlobalScope,
659        a_image: &ImageData,
660        a_options: &ImageBitmapOptions,
661    ) -> Result<::js_sys::Promise, JsValue>;
662    #[cfg(feature = "HtmlImageElement")]
663    #[wasm_bindgen(
664        catch,
665        method,
666        js_class = "WorkerGlobalScope",
667        js_name = "createImageBitmap"
668    )]
669    #[doc = "The `createImageBitmap()` method."]
670    #[doc = ""]
671    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/createImageBitmap)"]
672    #[doc = ""]
673    #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`, `WorkerGlobalScope`*"]
674    pub fn create_image_bitmap_with_html_image_element_and_a_sx_and_a_sy_and_a_sw_and_a_sh(
675        this: &WorkerGlobalScope,
676        a_image: &HtmlImageElement,
677        a_sx: i32,
678        a_sy: i32,
679        a_sw: i32,
680        a_sh: i32,
681    ) -> Result<::js_sys::Promise, JsValue>;
682    #[cfg(feature = "SvgImageElement")]
683    #[wasm_bindgen(
684        catch,
685        method,
686        js_class = "WorkerGlobalScope",
687        js_name = "createImageBitmap"
688    )]
689    #[doc = "The `createImageBitmap()` method."]
690    #[doc = ""]
691    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/createImageBitmap)"]
692    #[doc = ""]
693    #[doc = "*This API requires the following crate features to be activated: `SvgImageElement`, `WorkerGlobalScope`*"]
694    pub fn create_image_bitmap_with_svg_image_element_and_a_sx_and_a_sy_and_a_sw_and_a_sh(
695        this: &WorkerGlobalScope,
696        a_image: &SvgImageElement,
697        a_sx: i32,
698        a_sy: i32,
699        a_sw: i32,
700        a_sh: i32,
701    ) -> Result<::js_sys::Promise, JsValue>;
702    #[cfg(feature = "HtmlCanvasElement")]
703    #[wasm_bindgen(
704        catch,
705        method,
706        js_class = "WorkerGlobalScope",
707        js_name = "createImageBitmap"
708    )]
709    #[doc = "The `createImageBitmap()` method."]
710    #[doc = ""]
711    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/createImageBitmap)"]
712    #[doc = ""]
713    #[doc = "*This API requires the following crate features to be activated: `HtmlCanvasElement`, `WorkerGlobalScope`*"]
714    pub fn create_image_bitmap_with_html_canvas_element_and_a_sx_and_a_sy_and_a_sw_and_a_sh(
715        this: &WorkerGlobalScope,
716        a_image: &HtmlCanvasElement,
717        a_sx: i32,
718        a_sy: i32,
719        a_sw: i32,
720        a_sh: i32,
721    ) -> Result<::js_sys::Promise, JsValue>;
722    #[cfg(feature = "HtmlVideoElement")]
723    #[wasm_bindgen(
724        catch,
725        method,
726        js_class = "WorkerGlobalScope",
727        js_name = "createImageBitmap"
728    )]
729    #[doc = "The `createImageBitmap()` method."]
730    #[doc = ""]
731    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/createImageBitmap)"]
732    #[doc = ""]
733    #[doc = "*This API requires the following crate features to be activated: `HtmlVideoElement`, `WorkerGlobalScope`*"]
734    pub fn create_image_bitmap_with_html_video_element_and_a_sx_and_a_sy_and_a_sw_and_a_sh(
735        this: &WorkerGlobalScope,
736        a_image: &HtmlVideoElement,
737        a_sx: i32,
738        a_sy: i32,
739        a_sw: i32,
740        a_sh: i32,
741    ) -> Result<::js_sys::Promise, JsValue>;
742    #[cfg(feature = "ImageBitmap")]
743    #[wasm_bindgen(
744        catch,
745        method,
746        js_class = "WorkerGlobalScope",
747        js_name = "createImageBitmap"
748    )]
749    #[doc = "The `createImageBitmap()` method."]
750    #[doc = ""]
751    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/createImageBitmap)"]
752    #[doc = ""]
753    #[doc = "*This API requires the following crate features to be activated: `ImageBitmap`, `WorkerGlobalScope`*"]
754    pub fn create_image_bitmap_with_image_bitmap_and_a_sx_and_a_sy_and_a_sw_and_a_sh(
755        this: &WorkerGlobalScope,
756        a_image: &ImageBitmap,
757        a_sx: i32,
758        a_sy: i32,
759        a_sw: i32,
760        a_sh: i32,
761    ) -> Result<::js_sys::Promise, JsValue>;
762    #[cfg(feature = "OffscreenCanvas")]
763    #[wasm_bindgen(
764        catch,
765        method,
766        js_class = "WorkerGlobalScope",
767        js_name = "createImageBitmap"
768    )]
769    #[doc = "The `createImageBitmap()` method."]
770    #[doc = ""]
771    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/createImageBitmap)"]
772    #[doc = ""]
773    #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvas`, `WorkerGlobalScope`*"]
774    pub fn create_image_bitmap_with_offscreen_canvas_and_a_sx_and_a_sy_and_a_sw_and_a_sh(
775        this: &WorkerGlobalScope,
776        a_image: &OffscreenCanvas,
777        a_sx: i32,
778        a_sy: i32,
779        a_sw: i32,
780        a_sh: i32,
781    ) -> Result<::js_sys::Promise, JsValue>;
782    #[cfg(all(feature = "ImageBitmap", feature = "VideoFrame",))]
783    #[wasm_bindgen(
784        catch,
785        method,
786        js_class = "WorkerGlobalScope",
787        js_name = "createImageBitmap"
788    )]
789    #[doc = "The `createImageBitmap()` method."]
790    #[doc = ""]
791    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/createImageBitmap)"]
792    #[doc = ""]
793    #[doc = "*This API requires the following crate features to be activated: `ImageBitmap`, `VideoFrame`, `WorkerGlobalScope`*"]
794    pub fn create_image_bitmap_with_video_frame_and_a_sx_and_a_sy_and_a_sw_and_a_sh(
795        this: &WorkerGlobalScope,
796        a_image: &VideoFrame,
797        a_sx: i32,
798        a_sy: i32,
799        a_sw: i32,
800        a_sh: i32,
801    ) -> Result<::js_sys::Promise<ImageBitmap>, JsValue>;
802    #[cfg(feature = "Blob")]
803    #[wasm_bindgen(
804        catch,
805        method,
806        js_class = "WorkerGlobalScope",
807        js_name = "createImageBitmap"
808    )]
809    #[doc = "The `createImageBitmap()` method."]
810    #[doc = ""]
811    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/createImageBitmap)"]
812    #[doc = ""]
813    #[doc = "*This API requires the following crate features to be activated: `Blob`, `WorkerGlobalScope`*"]
814    pub fn create_image_bitmap_with_blob_and_a_sx_and_a_sy_and_a_sw_and_a_sh(
815        this: &WorkerGlobalScope,
816        a_image: &Blob,
817        a_sx: i32,
818        a_sy: i32,
819        a_sw: i32,
820        a_sh: i32,
821    ) -> Result<::js_sys::Promise, JsValue>;
822    #[cfg(feature = "ImageData")]
823    #[wasm_bindgen(
824        catch,
825        method,
826        js_class = "WorkerGlobalScope",
827        js_name = "createImageBitmap"
828    )]
829    #[doc = "The `createImageBitmap()` method."]
830    #[doc = ""]
831    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/createImageBitmap)"]
832    #[doc = ""]
833    #[doc = "*This API requires the following crate features to be activated: `ImageData`, `WorkerGlobalScope`*"]
834    pub fn create_image_bitmap_with_image_data_and_a_sx_and_a_sy_and_a_sw_and_a_sh(
835        this: &WorkerGlobalScope,
836        a_image: &ImageData,
837        a_sx: i32,
838        a_sy: i32,
839        a_sw: i32,
840        a_sh: i32,
841    ) -> Result<::js_sys::Promise, JsValue>;
842    #[cfg(all(feature = "HtmlImageElement", feature = "ImageBitmapOptions",))]
843    #[wasm_bindgen(
844        catch,
845        method,
846        js_class = "WorkerGlobalScope",
847        js_name = "createImageBitmap"
848    )]
849    #[doc = "The `createImageBitmap()` method."]
850    #[doc = ""]
851    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/createImageBitmap)"]
852    #[doc = ""]
853    #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`, `ImageBitmapOptions`, `WorkerGlobalScope`*"]
854    pub fn create_image_bitmap_with_html_image_element_and_a_sx_and_a_sy_and_a_sw_and_a_sh_and_a_options(
855        this: &WorkerGlobalScope,
856        a_image: &HtmlImageElement,
857        a_sx: i32,
858        a_sy: i32,
859        a_sw: i32,
860        a_sh: i32,
861        a_options: &ImageBitmapOptions,
862    ) -> Result<::js_sys::Promise, JsValue>;
863    #[cfg(all(feature = "ImageBitmapOptions", feature = "SvgImageElement",))]
864    #[wasm_bindgen(
865        catch,
866        method,
867        js_class = "WorkerGlobalScope",
868        js_name = "createImageBitmap"
869    )]
870    #[doc = "The `createImageBitmap()` method."]
871    #[doc = ""]
872    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/createImageBitmap)"]
873    #[doc = ""]
874    #[doc = "*This API requires the following crate features to be activated: `ImageBitmapOptions`, `SvgImageElement`, `WorkerGlobalScope`*"]
875    pub fn create_image_bitmap_with_svg_image_element_and_a_sx_and_a_sy_and_a_sw_and_a_sh_and_a_options(
876        this: &WorkerGlobalScope,
877        a_image: &SvgImageElement,
878        a_sx: i32,
879        a_sy: i32,
880        a_sw: i32,
881        a_sh: i32,
882        a_options: &ImageBitmapOptions,
883    ) -> Result<::js_sys::Promise, JsValue>;
884    #[cfg(all(feature = "HtmlCanvasElement", feature = "ImageBitmapOptions",))]
885    #[wasm_bindgen(
886        catch,
887        method,
888        js_class = "WorkerGlobalScope",
889        js_name = "createImageBitmap"
890    )]
891    #[doc = "The `createImageBitmap()` method."]
892    #[doc = ""]
893    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/createImageBitmap)"]
894    #[doc = ""]
895    #[doc = "*This API requires the following crate features to be activated: `HtmlCanvasElement`, `ImageBitmapOptions`, `WorkerGlobalScope`*"]
896    pub fn create_image_bitmap_with_html_canvas_element_and_a_sx_and_a_sy_and_a_sw_and_a_sh_and_a_options(
897        this: &WorkerGlobalScope,
898        a_image: &HtmlCanvasElement,
899        a_sx: i32,
900        a_sy: i32,
901        a_sw: i32,
902        a_sh: i32,
903        a_options: &ImageBitmapOptions,
904    ) -> Result<::js_sys::Promise, JsValue>;
905    #[cfg(all(feature = "HtmlVideoElement", feature = "ImageBitmapOptions",))]
906    #[wasm_bindgen(
907        catch,
908        method,
909        js_class = "WorkerGlobalScope",
910        js_name = "createImageBitmap"
911    )]
912    #[doc = "The `createImageBitmap()` method."]
913    #[doc = ""]
914    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/createImageBitmap)"]
915    #[doc = ""]
916    #[doc = "*This API requires the following crate features to be activated: `HtmlVideoElement`, `ImageBitmapOptions`, `WorkerGlobalScope`*"]
917    pub fn create_image_bitmap_with_html_video_element_and_a_sx_and_a_sy_and_a_sw_and_a_sh_and_a_options(
918        this: &WorkerGlobalScope,
919        a_image: &HtmlVideoElement,
920        a_sx: i32,
921        a_sy: i32,
922        a_sw: i32,
923        a_sh: i32,
924        a_options: &ImageBitmapOptions,
925    ) -> Result<::js_sys::Promise, JsValue>;
926    #[cfg(all(feature = "ImageBitmap", feature = "ImageBitmapOptions",))]
927    #[wasm_bindgen(
928        catch,
929        method,
930        js_class = "WorkerGlobalScope",
931        js_name = "createImageBitmap"
932    )]
933    #[doc = "The `createImageBitmap()` method."]
934    #[doc = ""]
935    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/createImageBitmap)"]
936    #[doc = ""]
937    #[doc = "*This API requires the following crate features to be activated: `ImageBitmap`, `ImageBitmapOptions`, `WorkerGlobalScope`*"]
938    pub fn create_image_bitmap_with_image_bitmap_and_a_sx_and_a_sy_and_a_sw_and_a_sh_and_a_options(
939        this: &WorkerGlobalScope,
940        a_image: &ImageBitmap,
941        a_sx: i32,
942        a_sy: i32,
943        a_sw: i32,
944        a_sh: i32,
945        a_options: &ImageBitmapOptions,
946    ) -> Result<::js_sys::Promise, JsValue>;
947    #[cfg(all(feature = "ImageBitmapOptions", feature = "OffscreenCanvas",))]
948    #[wasm_bindgen(
949        catch,
950        method,
951        js_class = "WorkerGlobalScope",
952        js_name = "createImageBitmap"
953    )]
954    #[doc = "The `createImageBitmap()` method."]
955    #[doc = ""]
956    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/createImageBitmap)"]
957    #[doc = ""]
958    #[doc = "*This API requires the following crate features to be activated: `ImageBitmapOptions`, `OffscreenCanvas`, `WorkerGlobalScope`*"]
959    pub fn create_image_bitmap_with_offscreen_canvas_and_a_sx_and_a_sy_and_a_sw_and_a_sh_and_a_options(
960        this: &WorkerGlobalScope,
961        a_image: &OffscreenCanvas,
962        a_sx: i32,
963        a_sy: i32,
964        a_sw: i32,
965        a_sh: i32,
966        a_options: &ImageBitmapOptions,
967    ) -> Result<::js_sys::Promise, JsValue>;
968    #[cfg(all(
969        feature = "ImageBitmap",
970        feature = "ImageBitmapOptions",
971        feature = "VideoFrame",
972    ))]
973    #[wasm_bindgen(
974        catch,
975        method,
976        js_class = "WorkerGlobalScope",
977        js_name = "createImageBitmap"
978    )]
979    #[doc = "The `createImageBitmap()` method."]
980    #[doc = ""]
981    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/createImageBitmap)"]
982    #[doc = ""]
983    #[doc = "*This API requires the following crate features to be activated: `ImageBitmap`, `ImageBitmapOptions`, `VideoFrame`, `WorkerGlobalScope`*"]
984    pub fn create_image_bitmap_with_video_frame_and_a_sx_and_a_sy_and_a_sw_and_a_sh_and_a_options(
985        this: &WorkerGlobalScope,
986        a_image: &VideoFrame,
987        a_sx: i32,
988        a_sy: i32,
989        a_sw: i32,
990        a_sh: i32,
991        a_options: &ImageBitmapOptions,
992    ) -> Result<::js_sys::Promise<ImageBitmap>, JsValue>;
993    #[cfg(all(feature = "Blob", feature = "ImageBitmapOptions",))]
994    #[wasm_bindgen(
995        catch,
996        method,
997        js_class = "WorkerGlobalScope",
998        js_name = "createImageBitmap"
999    )]
1000    #[doc = "The `createImageBitmap()` method."]
1001    #[doc = ""]
1002    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/createImageBitmap)"]
1003    #[doc = ""]
1004    #[doc = "*This API requires the following crate features to be activated: `Blob`, `ImageBitmapOptions`, `WorkerGlobalScope`*"]
1005    pub fn create_image_bitmap_with_blob_and_a_sx_and_a_sy_and_a_sw_and_a_sh_and_a_options(
1006        this: &WorkerGlobalScope,
1007        a_image: &Blob,
1008        a_sx: i32,
1009        a_sy: i32,
1010        a_sw: i32,
1011        a_sh: i32,
1012        a_options: &ImageBitmapOptions,
1013    ) -> Result<::js_sys::Promise, JsValue>;
1014    #[cfg(all(feature = "ImageBitmapOptions", feature = "ImageData",))]
1015    #[wasm_bindgen(
1016        catch,
1017        method,
1018        js_class = "WorkerGlobalScope",
1019        js_name = "createImageBitmap"
1020    )]
1021    #[doc = "The `createImageBitmap()` method."]
1022    #[doc = ""]
1023    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/createImageBitmap)"]
1024    #[doc = ""]
1025    #[doc = "*This API requires the following crate features to be activated: `ImageBitmapOptions`, `ImageData`, `WorkerGlobalScope`*"]
1026    pub fn create_image_bitmap_with_image_data_and_a_sx_and_a_sy_and_a_sw_and_a_sh_and_a_options(
1027        this: &WorkerGlobalScope,
1028        a_image: &ImageData,
1029        a_sx: i32,
1030        a_sy: i32,
1031        a_sw: i32,
1032        a_sh: i32,
1033        a_options: &ImageBitmapOptions,
1034    ) -> Result<::js_sys::Promise, JsValue>;
1035    #[cfg(feature = "Request")]
1036    #[wasm_bindgen(method, js_class = "WorkerGlobalScope", js_name = "fetch")]
1037    #[doc = "The `fetch()` method."]
1038    #[doc = ""]
1039    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/fetch)"]
1040    #[doc = ""]
1041    #[doc = "*This API requires the following crate features to be activated: `Request`, `WorkerGlobalScope`*"]
1042    pub fn fetch_with_request(this: &WorkerGlobalScope, input: &Request) -> ::js_sys::Promise;
1043    #[wasm_bindgen(method, js_class = "WorkerGlobalScope", js_name = "fetch")]
1044    #[doc = "The `fetch()` method."]
1045    #[doc = ""]
1046    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/fetch)"]
1047    #[doc = ""]
1048    #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
1049    pub fn fetch_with_str(this: &WorkerGlobalScope, input: &str) -> ::js_sys::Promise;
1050    #[cfg(all(feature = "Request", feature = "RequestInit",))]
1051    #[wasm_bindgen(method, js_class = "WorkerGlobalScope", js_name = "fetch")]
1052    #[doc = "The `fetch()` method."]
1053    #[doc = ""]
1054    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/fetch)"]
1055    #[doc = ""]
1056    #[doc = "*This API requires the following crate features to be activated: `Request`, `RequestInit`, `WorkerGlobalScope`*"]
1057    pub fn fetch_with_request_and_init(
1058        this: &WorkerGlobalScope,
1059        input: &Request,
1060        init: &RequestInit,
1061    ) -> ::js_sys::Promise;
1062    #[cfg(feature = "RequestInit")]
1063    #[wasm_bindgen(method, js_class = "WorkerGlobalScope", js_name = "fetch")]
1064    #[doc = "The `fetch()` method."]
1065    #[doc = ""]
1066    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/fetch)"]
1067    #[doc = ""]
1068    #[doc = "*This API requires the following crate features to be activated: `RequestInit`, `WorkerGlobalScope`*"]
1069    pub fn fetch_with_str_and_init(
1070        this: &WorkerGlobalScope,
1071        input: &str,
1072        init: &RequestInit,
1073    ) -> ::js_sys::Promise;
1074    #[wasm_bindgen(method, js_class = "WorkerGlobalScope", js_name = "queueMicrotask")]
1075    #[doc = "The `queueMicrotask()` method."]
1076    #[doc = ""]
1077    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/queueMicrotask)"]
1078    #[doc = ""]
1079    #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
1080    pub fn queue_microtask(this: &WorkerGlobalScope, callback: &::js_sys::Function);
1081    #[wasm_bindgen(catch, method, js_class = "WorkerGlobalScope", js_name = "setInterval")]
1082    #[doc = "The `setInterval()` method."]
1083    #[doc = ""]
1084    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setInterval)"]
1085    #[doc = ""]
1086    #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
1087    pub fn set_interval_with_callback(
1088        this: &WorkerGlobalScope,
1089        handler: &::js_sys::Function,
1090    ) -> Result<i32, JsValue>;
1091    #[wasm_bindgen(
1092        catch,
1093        method,
1094        variadic,
1095        js_class = "WorkerGlobalScope",
1096        js_name = "setInterval"
1097    )]
1098    #[doc = "The `setInterval()` method."]
1099    #[doc = ""]
1100    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setInterval)"]
1101    #[doc = ""]
1102    #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
1103    pub fn set_interval_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, js_class = "WorkerGlobalScope", js_name = "setInterval")]
1110    #[doc = "The `setInterval()` method."]
1111    #[doc = ""]
1112    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setInterval)"]
1113    #[doc = ""]
1114    #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
1115    pub fn set_interval_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, js_class = "WorkerGlobalScope", js_name = "setInterval")]
1121    #[doc = "The `setInterval()` method."]
1122    #[doc = ""]
1123    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setInterval)"]
1124    #[doc = ""]
1125    #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
1126    pub fn set_interval_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, js_class = "WorkerGlobalScope", js_name = "setInterval")]
1133    #[doc = "The `setInterval()` method."]
1134    #[doc = ""]
1135    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setInterval)"]
1136    #[doc = ""]
1137    #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
1138    pub fn set_interval_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, js_class = "WorkerGlobalScope", js_name = "setInterval")]
1146    #[doc = "The `setInterval()` method."]
1147    #[doc = ""]
1148    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setInterval)"]
1149    #[doc = ""]
1150    #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
1151    pub fn set_interval_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, js_class = "WorkerGlobalScope", js_name = "setInterval")]
1160    #[doc = "The `setInterval()` method."]
1161    #[doc = ""]
1162    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setInterval)"]
1163    #[doc = ""]
1164    #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
1165    pub fn set_interval_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, js_class = "WorkerGlobalScope", js_name = "setInterval")]
1175    #[doc = "The `setInterval()` method."]
1176    #[doc = ""]
1177    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setInterval)"]
1178    #[doc = ""]
1179    #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
1180    pub fn set_interval_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, js_class = "WorkerGlobalScope", js_name = "setInterval")]
1191    #[doc = "The `setInterval()` method."]
1192    #[doc = ""]
1193    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setInterval)"]
1194    #[doc = ""]
1195    #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
1196    pub fn set_interval_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, js_class = "WorkerGlobalScope", js_name = "setInterval")]
1208    #[doc = "The `setInterval()` method."]
1209    #[doc = ""]
1210    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setInterval)"]
1211    #[doc = ""]
1212    #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
1213    pub fn set_interval_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, js_class = "WorkerGlobalScope", js_name = "setInterval")]
1226    #[doc = "The `setInterval()` method."]
1227    #[doc = ""]
1228    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setInterval)"]
1229    #[doc = ""]
1230    #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
1231    pub fn set_interval_with_str(this: &WorkerGlobalScope, handler: &str) -> Result<i32, JsValue>;
1232    #[wasm_bindgen(
1233        catch,
1234        method,
1235        variadic,
1236        js_class = "WorkerGlobalScope",
1237        js_name = "setInterval"
1238    )]
1239    #[doc = "The `setInterval()` method."]
1240    #[doc = ""]
1241    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setInterval)"]
1242    #[doc = ""]
1243    #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
1244    pub fn set_interval_with_str_and_timeout_and_unused(
1245        this: &WorkerGlobalScope,
1246        handler: &str,
1247        timeout: i32,
1248        unused: &::js_sys::Array,
1249    ) -> Result<i32, JsValue>;
1250    #[wasm_bindgen(catch, method, js_class = "WorkerGlobalScope", js_name = "setInterval")]
1251    #[doc = "The `setInterval()` method."]
1252    #[doc = ""]
1253    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setInterval)"]
1254    #[doc = ""]
1255    #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
1256    pub fn set_interval_with_str_and_timeout_and_unused_0(
1257        this: &WorkerGlobalScope,
1258        handler: &str,
1259        timeout: i32,
1260    ) -> Result<i32, JsValue>;
1261    #[wasm_bindgen(catch, method, js_class = "WorkerGlobalScope", js_name = "setInterval")]
1262    #[doc = "The `setInterval()` method."]
1263    #[doc = ""]
1264    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setInterval)"]
1265    #[doc = ""]
1266    #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
1267    pub fn set_interval_with_str_and_timeout_and_unused_1(
1268        this: &WorkerGlobalScope,
1269        handler: &str,
1270        timeout: i32,
1271        unused_1: &::wasm_bindgen::JsValue,
1272    ) -> Result<i32, JsValue>;
1273    #[wasm_bindgen(catch, method, js_class = "WorkerGlobalScope", js_name = "setInterval")]
1274    #[doc = "The `setInterval()` method."]
1275    #[doc = ""]
1276    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setInterval)"]
1277    #[doc = ""]
1278    #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
1279    pub fn set_interval_with_str_and_timeout_and_unused_2(
1280        this: &WorkerGlobalScope,
1281        handler: &str,
1282        timeout: i32,
1283        unused_1: &::wasm_bindgen::JsValue,
1284        unused_2: &::wasm_bindgen::JsValue,
1285    ) -> Result<i32, JsValue>;
1286    #[wasm_bindgen(catch, method, js_class = "WorkerGlobalScope", js_name = "setInterval")]
1287    #[doc = "The `setInterval()` method."]
1288    #[doc = ""]
1289    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setInterval)"]
1290    #[doc = ""]
1291    #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
1292    pub fn set_interval_with_str_and_timeout_and_unused_3(
1293        this: &WorkerGlobalScope,
1294        handler: &str,
1295        timeout: i32,
1296        unused_1: &::wasm_bindgen::JsValue,
1297        unused_2: &::wasm_bindgen::JsValue,
1298        unused_3: &::wasm_bindgen::JsValue,
1299    ) -> Result<i32, JsValue>;
1300    #[wasm_bindgen(catch, method, js_class = "WorkerGlobalScope", js_name = "setInterval")]
1301    #[doc = "The `setInterval()` method."]
1302    #[doc = ""]
1303    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setInterval)"]
1304    #[doc = ""]
1305    #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
1306    pub fn set_interval_with_str_and_timeout_and_unused_4(
1307        this: &WorkerGlobalScope,
1308        handler: &str,
1309        timeout: i32,
1310        unused_1: &::wasm_bindgen::JsValue,
1311        unused_2: &::wasm_bindgen::JsValue,
1312        unused_3: &::wasm_bindgen::JsValue,
1313        unused_4: &::wasm_bindgen::JsValue,
1314    ) -> Result<i32, JsValue>;
1315    #[wasm_bindgen(catch, method, js_class = "WorkerGlobalScope", js_name = "setInterval")]
1316    #[doc = "The `setInterval()` method."]
1317    #[doc = ""]
1318    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setInterval)"]
1319    #[doc = ""]
1320    #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
1321    pub fn set_interval_with_str_and_timeout_and_unused_5(
1322        this: &WorkerGlobalScope,
1323        handler: &str,
1324        timeout: i32,
1325        unused_1: &::wasm_bindgen::JsValue,
1326        unused_2: &::wasm_bindgen::JsValue,
1327        unused_3: &::wasm_bindgen::JsValue,
1328        unused_4: &::wasm_bindgen::JsValue,
1329        unused_5: &::wasm_bindgen::JsValue,
1330    ) -> Result<i32, JsValue>;
1331    #[wasm_bindgen(catch, method, js_class = "WorkerGlobalScope", js_name = "setInterval")]
1332    #[doc = "The `setInterval()` method."]
1333    #[doc = ""]
1334    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setInterval)"]
1335    #[doc = ""]
1336    #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
1337    pub fn set_interval_with_str_and_timeout_and_unused_6(
1338        this: &WorkerGlobalScope,
1339        handler: &str,
1340        timeout: i32,
1341        unused_1: &::wasm_bindgen::JsValue,
1342        unused_2: &::wasm_bindgen::JsValue,
1343        unused_3: &::wasm_bindgen::JsValue,
1344        unused_4: &::wasm_bindgen::JsValue,
1345        unused_5: &::wasm_bindgen::JsValue,
1346        unused_6: &::wasm_bindgen::JsValue,
1347    ) -> Result<i32, JsValue>;
1348    #[wasm_bindgen(catch, method, js_class = "WorkerGlobalScope", js_name = "setInterval")]
1349    #[doc = "The `setInterval()` method."]
1350    #[doc = ""]
1351    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setInterval)"]
1352    #[doc = ""]
1353    #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
1354    pub fn set_interval_with_str_and_timeout_and_unused_7(
1355        this: &WorkerGlobalScope,
1356        handler: &str,
1357        timeout: i32,
1358        unused_1: &::wasm_bindgen::JsValue,
1359        unused_2: &::wasm_bindgen::JsValue,
1360        unused_3: &::wasm_bindgen::JsValue,
1361        unused_4: &::wasm_bindgen::JsValue,
1362        unused_5: &::wasm_bindgen::JsValue,
1363        unused_6: &::wasm_bindgen::JsValue,
1364        unused_7: &::wasm_bindgen::JsValue,
1365    ) -> Result<i32, JsValue>;
1366    #[wasm_bindgen(catch, method, js_class = "WorkerGlobalScope", js_name = "setTimeout")]
1367    #[doc = "The `setTimeout()` method."]
1368    #[doc = ""]
1369    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setTimeout)"]
1370    #[doc = ""]
1371    #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
1372    pub fn set_timeout_with_callback(
1373        this: &WorkerGlobalScope,
1374        handler: &::js_sys::Function,
1375    ) -> Result<i32, JsValue>;
1376    #[wasm_bindgen(
1377        catch,
1378        method,
1379        variadic,
1380        js_class = "WorkerGlobalScope",
1381        js_name = "setTimeout"
1382    )]
1383    #[doc = "The `setTimeout()` method."]
1384    #[doc = ""]
1385    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setTimeout)"]
1386    #[doc = ""]
1387    #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
1388    pub fn set_timeout_with_callback_and_timeout_and_arguments(
1389        this: &WorkerGlobalScope,
1390        handler: &::js_sys::Function,
1391        timeout: i32,
1392        arguments: &::js_sys::Array,
1393    ) -> Result<i32, JsValue>;
1394    #[wasm_bindgen(catch, method, js_class = "WorkerGlobalScope", js_name = "setTimeout")]
1395    #[doc = "The `setTimeout()` method."]
1396    #[doc = ""]
1397    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setTimeout)"]
1398    #[doc = ""]
1399    #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
1400    pub fn set_timeout_with_callback_and_timeout_and_arguments_0(
1401        this: &WorkerGlobalScope,
1402        handler: &::js_sys::Function,
1403        timeout: i32,
1404    ) -> Result<i32, JsValue>;
1405    #[wasm_bindgen(catch, method, js_class = "WorkerGlobalScope", js_name = "setTimeout")]
1406    #[doc = "The `setTimeout()` method."]
1407    #[doc = ""]
1408    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setTimeout)"]
1409    #[doc = ""]
1410    #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
1411    pub fn set_timeout_with_callback_and_timeout_and_arguments_1(
1412        this: &WorkerGlobalScope,
1413        handler: &::js_sys::Function,
1414        timeout: i32,
1415        arguments_1: &::wasm_bindgen::JsValue,
1416    ) -> Result<i32, JsValue>;
1417    #[wasm_bindgen(catch, method, js_class = "WorkerGlobalScope", js_name = "setTimeout")]
1418    #[doc = "The `setTimeout()` method."]
1419    #[doc = ""]
1420    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setTimeout)"]
1421    #[doc = ""]
1422    #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
1423    pub fn set_timeout_with_callback_and_timeout_and_arguments_2(
1424        this: &WorkerGlobalScope,
1425        handler: &::js_sys::Function,
1426        timeout: i32,
1427        arguments_1: &::wasm_bindgen::JsValue,
1428        arguments_2: &::wasm_bindgen::JsValue,
1429    ) -> Result<i32, JsValue>;
1430    #[wasm_bindgen(catch, method, js_class = "WorkerGlobalScope", js_name = "setTimeout")]
1431    #[doc = "The `setTimeout()` method."]
1432    #[doc = ""]
1433    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setTimeout)"]
1434    #[doc = ""]
1435    #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
1436    pub fn set_timeout_with_callback_and_timeout_and_arguments_3(
1437        this: &WorkerGlobalScope,
1438        handler: &::js_sys::Function,
1439        timeout: i32,
1440        arguments_1: &::wasm_bindgen::JsValue,
1441        arguments_2: &::wasm_bindgen::JsValue,
1442        arguments_3: &::wasm_bindgen::JsValue,
1443    ) -> Result<i32, JsValue>;
1444    #[wasm_bindgen(catch, method, js_class = "WorkerGlobalScope", js_name = "setTimeout")]
1445    #[doc = "The `setTimeout()` method."]
1446    #[doc = ""]
1447    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setTimeout)"]
1448    #[doc = ""]
1449    #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
1450    pub fn set_timeout_with_callback_and_timeout_and_arguments_4(
1451        this: &WorkerGlobalScope,
1452        handler: &::js_sys::Function,
1453        timeout: i32,
1454        arguments_1: &::wasm_bindgen::JsValue,
1455        arguments_2: &::wasm_bindgen::JsValue,
1456        arguments_3: &::wasm_bindgen::JsValue,
1457        arguments_4: &::wasm_bindgen::JsValue,
1458    ) -> Result<i32, JsValue>;
1459    #[wasm_bindgen(catch, method, js_class = "WorkerGlobalScope", js_name = "setTimeout")]
1460    #[doc = "The `setTimeout()` method."]
1461    #[doc = ""]
1462    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setTimeout)"]
1463    #[doc = ""]
1464    #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
1465    pub fn set_timeout_with_callback_and_timeout_and_arguments_5(
1466        this: &WorkerGlobalScope,
1467        handler: &::js_sys::Function,
1468        timeout: i32,
1469        arguments_1: &::wasm_bindgen::JsValue,
1470        arguments_2: &::wasm_bindgen::JsValue,
1471        arguments_3: &::wasm_bindgen::JsValue,
1472        arguments_4: &::wasm_bindgen::JsValue,
1473        arguments_5: &::wasm_bindgen::JsValue,
1474    ) -> Result<i32, JsValue>;
1475    #[wasm_bindgen(catch, method, js_class = "WorkerGlobalScope", js_name = "setTimeout")]
1476    #[doc = "The `setTimeout()` method."]
1477    #[doc = ""]
1478    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setTimeout)"]
1479    #[doc = ""]
1480    #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
1481    pub fn set_timeout_with_callback_and_timeout_and_arguments_6(
1482        this: &WorkerGlobalScope,
1483        handler: &::js_sys::Function,
1484        timeout: i32,
1485        arguments_1: &::wasm_bindgen::JsValue,
1486        arguments_2: &::wasm_bindgen::JsValue,
1487        arguments_3: &::wasm_bindgen::JsValue,
1488        arguments_4: &::wasm_bindgen::JsValue,
1489        arguments_5: &::wasm_bindgen::JsValue,
1490        arguments_6: &::wasm_bindgen::JsValue,
1491    ) -> Result<i32, JsValue>;
1492    #[wasm_bindgen(catch, method, js_class = "WorkerGlobalScope", js_name = "setTimeout")]
1493    #[doc = "The `setTimeout()` method."]
1494    #[doc = ""]
1495    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setTimeout)"]
1496    #[doc = ""]
1497    #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
1498    pub fn set_timeout_with_callback_and_timeout_and_arguments_7(
1499        this: &WorkerGlobalScope,
1500        handler: &::js_sys::Function,
1501        timeout: i32,
1502        arguments_1: &::wasm_bindgen::JsValue,
1503        arguments_2: &::wasm_bindgen::JsValue,
1504        arguments_3: &::wasm_bindgen::JsValue,
1505        arguments_4: &::wasm_bindgen::JsValue,
1506        arguments_5: &::wasm_bindgen::JsValue,
1507        arguments_6: &::wasm_bindgen::JsValue,
1508        arguments_7: &::wasm_bindgen::JsValue,
1509    ) -> Result<i32, JsValue>;
1510    #[wasm_bindgen(catch, method, js_class = "WorkerGlobalScope", js_name = "setTimeout")]
1511    #[doc = "The `setTimeout()` method."]
1512    #[doc = ""]
1513    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setTimeout)"]
1514    #[doc = ""]
1515    #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
1516    pub fn set_timeout_with_str(this: &WorkerGlobalScope, handler: &str) -> Result<i32, JsValue>;
1517    #[wasm_bindgen(
1518        catch,
1519        method,
1520        variadic,
1521        js_class = "WorkerGlobalScope",
1522        js_name = "setTimeout"
1523    )]
1524    #[doc = "The `setTimeout()` method."]
1525    #[doc = ""]
1526    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setTimeout)"]
1527    #[doc = ""]
1528    #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
1529    pub fn set_timeout_with_str_and_timeout_and_unused(
1530        this: &WorkerGlobalScope,
1531        handler: &str,
1532        timeout: i32,
1533        unused: &::js_sys::Array,
1534    ) -> Result<i32, JsValue>;
1535    #[wasm_bindgen(catch, method, js_class = "WorkerGlobalScope", js_name = "setTimeout")]
1536    #[doc = "The `setTimeout()` method."]
1537    #[doc = ""]
1538    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setTimeout)"]
1539    #[doc = ""]
1540    #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
1541    pub fn set_timeout_with_str_and_timeout_and_unused_0(
1542        this: &WorkerGlobalScope,
1543        handler: &str,
1544        timeout: i32,
1545    ) -> Result<i32, JsValue>;
1546    #[wasm_bindgen(catch, method, js_class = "WorkerGlobalScope", js_name = "setTimeout")]
1547    #[doc = "The `setTimeout()` method."]
1548    #[doc = ""]
1549    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setTimeout)"]
1550    #[doc = ""]
1551    #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
1552    pub fn set_timeout_with_str_and_timeout_and_unused_1(
1553        this: &WorkerGlobalScope,
1554        handler: &str,
1555        timeout: i32,
1556        unused_1: &::wasm_bindgen::JsValue,
1557    ) -> Result<i32, JsValue>;
1558    #[wasm_bindgen(catch, method, js_class = "WorkerGlobalScope", js_name = "setTimeout")]
1559    #[doc = "The `setTimeout()` method."]
1560    #[doc = ""]
1561    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setTimeout)"]
1562    #[doc = ""]
1563    #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
1564    pub fn set_timeout_with_str_and_timeout_and_unused_2(
1565        this: &WorkerGlobalScope,
1566        handler: &str,
1567        timeout: i32,
1568        unused_1: &::wasm_bindgen::JsValue,
1569        unused_2: &::wasm_bindgen::JsValue,
1570    ) -> Result<i32, JsValue>;
1571    #[wasm_bindgen(catch, method, js_class = "WorkerGlobalScope", js_name = "setTimeout")]
1572    #[doc = "The `setTimeout()` method."]
1573    #[doc = ""]
1574    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setTimeout)"]
1575    #[doc = ""]
1576    #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
1577    pub fn set_timeout_with_str_and_timeout_and_unused_3(
1578        this: &WorkerGlobalScope,
1579        handler: &str,
1580        timeout: i32,
1581        unused_1: &::wasm_bindgen::JsValue,
1582        unused_2: &::wasm_bindgen::JsValue,
1583        unused_3: &::wasm_bindgen::JsValue,
1584    ) -> Result<i32, JsValue>;
1585    #[wasm_bindgen(catch, method, js_class = "WorkerGlobalScope", js_name = "setTimeout")]
1586    #[doc = "The `setTimeout()` method."]
1587    #[doc = ""]
1588    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setTimeout)"]
1589    #[doc = ""]
1590    #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
1591    pub fn set_timeout_with_str_and_timeout_and_unused_4(
1592        this: &WorkerGlobalScope,
1593        handler: &str,
1594        timeout: i32,
1595        unused_1: &::wasm_bindgen::JsValue,
1596        unused_2: &::wasm_bindgen::JsValue,
1597        unused_3: &::wasm_bindgen::JsValue,
1598        unused_4: &::wasm_bindgen::JsValue,
1599    ) -> Result<i32, JsValue>;
1600    #[wasm_bindgen(catch, method, js_class = "WorkerGlobalScope", js_name = "setTimeout")]
1601    #[doc = "The `setTimeout()` method."]
1602    #[doc = ""]
1603    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setTimeout)"]
1604    #[doc = ""]
1605    #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
1606    pub fn set_timeout_with_str_and_timeout_and_unused_5(
1607        this: &WorkerGlobalScope,
1608        handler: &str,
1609        timeout: i32,
1610        unused_1: &::wasm_bindgen::JsValue,
1611        unused_2: &::wasm_bindgen::JsValue,
1612        unused_3: &::wasm_bindgen::JsValue,
1613        unused_4: &::wasm_bindgen::JsValue,
1614        unused_5: &::wasm_bindgen::JsValue,
1615    ) -> Result<i32, JsValue>;
1616    #[wasm_bindgen(catch, method, js_class = "WorkerGlobalScope", js_name = "setTimeout")]
1617    #[doc = "The `setTimeout()` method."]
1618    #[doc = ""]
1619    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setTimeout)"]
1620    #[doc = ""]
1621    #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
1622    pub fn set_timeout_with_str_and_timeout_and_unused_6(
1623        this: &WorkerGlobalScope,
1624        handler: &str,
1625        timeout: i32,
1626        unused_1: &::wasm_bindgen::JsValue,
1627        unused_2: &::wasm_bindgen::JsValue,
1628        unused_3: &::wasm_bindgen::JsValue,
1629        unused_4: &::wasm_bindgen::JsValue,
1630        unused_5: &::wasm_bindgen::JsValue,
1631        unused_6: &::wasm_bindgen::JsValue,
1632    ) -> Result<i32, JsValue>;
1633    #[wasm_bindgen(catch, method, js_class = "WorkerGlobalScope", js_name = "setTimeout")]
1634    #[doc = "The `setTimeout()` method."]
1635    #[doc = ""]
1636    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setTimeout)"]
1637    #[doc = ""]
1638    #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
1639    pub fn set_timeout_with_str_and_timeout_and_unused_7(
1640        this: &WorkerGlobalScope,
1641        handler: &str,
1642        timeout: i32,
1643        unused_1: &::wasm_bindgen::JsValue,
1644        unused_2: &::wasm_bindgen::JsValue,
1645        unused_3: &::wasm_bindgen::JsValue,
1646        unused_4: &::wasm_bindgen::JsValue,
1647        unused_5: &::wasm_bindgen::JsValue,
1648        unused_6: &::wasm_bindgen::JsValue,
1649        unused_7: &::wasm_bindgen::JsValue,
1650    ) -> Result<i32, JsValue>;
1651}