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 (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(all(feature = "ImageBitmap", 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: `ImageBitmap`, `VideoFrame`, `WorkerGlobalScope`*"]
355    pub fn create_image_bitmap_with_video_frame(
356        this: &WorkerGlobalScope,
357        a_image: &VideoFrame,
358    ) -> Result<::js_sys::Promise<ImageBitmap>, 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(
454        feature = "ImageBitmap",
455        feature = "ImageBitmapOptions",
456        feature = "VideoFrame",
457    ))]
458    # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = createImageBitmap)]
459    #[doc = "The `createImageBitmap()` method."]
460    #[doc = ""]
461    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/createImageBitmap)"]
462    #[doc = ""]
463    #[doc = "*This API requires the following crate features to be activated: `ImageBitmap`, `ImageBitmapOptions`, `VideoFrame`, `WorkerGlobalScope`*"]
464    pub fn create_image_bitmap_with_video_frame_and_image_bitmap_options(
465        this: &WorkerGlobalScope,
466        a_image: &VideoFrame,
467        a_options: &ImageBitmapOptions,
468    ) -> Result<::js_sys::Promise<ImageBitmap>, JsValue>;
469    #[cfg(all(feature = "Blob", feature = "ImageBitmapOptions",))]
470    # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = createImageBitmap)]
471    #[doc = "The `createImageBitmap()` method."]
472    #[doc = ""]
473    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/createImageBitmap)"]
474    #[doc = ""]
475    #[doc = "*This API requires the following crate features to be activated: `Blob`, `ImageBitmapOptions`, `WorkerGlobalScope`*"]
476    pub fn create_image_bitmap_with_blob_and_image_bitmap_options(
477        this: &WorkerGlobalScope,
478        a_image: &Blob,
479        a_options: &ImageBitmapOptions,
480    ) -> Result<::js_sys::Promise, JsValue>;
481    #[cfg(all(feature = "ImageBitmapOptions", feature = "ImageData",))]
482    # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = createImageBitmap)]
483    #[doc = "The `createImageBitmap()` method."]
484    #[doc = ""]
485    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/createImageBitmap)"]
486    #[doc = ""]
487    #[doc = "*This API requires the following crate features to be activated: `ImageBitmapOptions`, `ImageData`, `WorkerGlobalScope`*"]
488    pub fn create_image_bitmap_with_image_data_and_image_bitmap_options(
489        this: &WorkerGlobalScope,
490        a_image: &ImageData,
491        a_options: &ImageBitmapOptions,
492    ) -> Result<::js_sys::Promise, JsValue>;
493    #[cfg(feature = "HtmlImageElement")]
494    # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = createImageBitmap)]
495    #[doc = "The `createImageBitmap()` method."]
496    #[doc = ""]
497    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/createImageBitmap)"]
498    #[doc = ""]
499    #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`, `WorkerGlobalScope`*"]
500    pub fn create_image_bitmap_with_html_image_element_and_a_sx_and_a_sy_and_a_sw_and_a_sh(
501        this: &WorkerGlobalScope,
502        a_image: &HtmlImageElement,
503        a_sx: i32,
504        a_sy: i32,
505        a_sw: i32,
506        a_sh: i32,
507    ) -> Result<::js_sys::Promise, JsValue>;
508    #[cfg(feature = "SvgImageElement")]
509    # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = createImageBitmap)]
510    #[doc = "The `createImageBitmap()` method."]
511    #[doc = ""]
512    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/createImageBitmap)"]
513    #[doc = ""]
514    #[doc = "*This API requires the following crate features to be activated: `SvgImageElement`, `WorkerGlobalScope`*"]
515    pub fn create_image_bitmap_with_svg_image_element_and_a_sx_and_a_sy_and_a_sw_and_a_sh(
516        this: &WorkerGlobalScope,
517        a_image: &SvgImageElement,
518        a_sx: i32,
519        a_sy: i32,
520        a_sw: i32,
521        a_sh: i32,
522    ) -> Result<::js_sys::Promise, JsValue>;
523    #[cfg(feature = "HtmlCanvasElement")]
524    # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = createImageBitmap)]
525    #[doc = "The `createImageBitmap()` method."]
526    #[doc = ""]
527    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/createImageBitmap)"]
528    #[doc = ""]
529    #[doc = "*This API requires the following crate features to be activated: `HtmlCanvasElement`, `WorkerGlobalScope`*"]
530    pub fn create_image_bitmap_with_html_canvas_element_and_a_sx_and_a_sy_and_a_sw_and_a_sh(
531        this: &WorkerGlobalScope,
532        a_image: &HtmlCanvasElement,
533        a_sx: i32,
534        a_sy: i32,
535        a_sw: i32,
536        a_sh: i32,
537    ) -> Result<::js_sys::Promise, JsValue>;
538    #[cfg(feature = "HtmlVideoElement")]
539    # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = createImageBitmap)]
540    #[doc = "The `createImageBitmap()` method."]
541    #[doc = ""]
542    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/createImageBitmap)"]
543    #[doc = ""]
544    #[doc = "*This API requires the following crate features to be activated: `HtmlVideoElement`, `WorkerGlobalScope`*"]
545    pub fn create_image_bitmap_with_html_video_element_and_a_sx_and_a_sy_and_a_sw_and_a_sh(
546        this: &WorkerGlobalScope,
547        a_image: &HtmlVideoElement,
548        a_sx: i32,
549        a_sy: i32,
550        a_sw: i32,
551        a_sh: i32,
552    ) -> Result<::js_sys::Promise, JsValue>;
553    #[cfg(feature = "ImageBitmap")]
554    # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = createImageBitmap)]
555    #[doc = "The `createImageBitmap()` method."]
556    #[doc = ""]
557    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/createImageBitmap)"]
558    #[doc = ""]
559    #[doc = "*This API requires the following crate features to be activated: `ImageBitmap`, `WorkerGlobalScope`*"]
560    pub fn create_image_bitmap_with_image_bitmap_and_a_sx_and_a_sy_and_a_sw_and_a_sh(
561        this: &WorkerGlobalScope,
562        a_image: &ImageBitmap,
563        a_sx: i32,
564        a_sy: i32,
565        a_sw: i32,
566        a_sh: i32,
567    ) -> Result<::js_sys::Promise, JsValue>;
568    #[cfg(feature = "OffscreenCanvas")]
569    # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = createImageBitmap)]
570    #[doc = "The `createImageBitmap()` method."]
571    #[doc = ""]
572    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/createImageBitmap)"]
573    #[doc = ""]
574    #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvas`, `WorkerGlobalScope`*"]
575    pub fn create_image_bitmap_with_offscreen_canvas_and_a_sx_and_a_sy_and_a_sw_and_a_sh(
576        this: &WorkerGlobalScope,
577        a_image: &OffscreenCanvas,
578        a_sx: i32,
579        a_sy: i32,
580        a_sw: i32,
581        a_sh: i32,
582    ) -> Result<::js_sys::Promise, JsValue>;
583    #[cfg(all(feature = "ImageBitmap", feature = "VideoFrame",))]
584    # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = createImageBitmap)]
585    #[doc = "The `createImageBitmap()` method."]
586    #[doc = ""]
587    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/createImageBitmap)"]
588    #[doc = ""]
589    #[doc = "*This API requires the following crate features to be activated: `ImageBitmap`, `VideoFrame`, `WorkerGlobalScope`*"]
590    pub fn create_image_bitmap_with_video_frame_and_a_sx_and_a_sy_and_a_sw_and_a_sh(
591        this: &WorkerGlobalScope,
592        a_image: &VideoFrame,
593        a_sx: i32,
594        a_sy: i32,
595        a_sw: i32,
596        a_sh: i32,
597    ) -> Result<::js_sys::Promise<ImageBitmap>, JsValue>;
598    #[cfg(feature = "Blob")]
599    # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = createImageBitmap)]
600    #[doc = "The `createImageBitmap()` method."]
601    #[doc = ""]
602    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/createImageBitmap)"]
603    #[doc = ""]
604    #[doc = "*This API requires the following crate features to be activated: `Blob`, `WorkerGlobalScope`*"]
605    pub fn create_image_bitmap_with_blob_and_a_sx_and_a_sy_and_a_sw_and_a_sh(
606        this: &WorkerGlobalScope,
607        a_image: &Blob,
608        a_sx: i32,
609        a_sy: i32,
610        a_sw: i32,
611        a_sh: i32,
612    ) -> Result<::js_sys::Promise, JsValue>;
613    #[cfg(feature = "ImageData")]
614    # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = createImageBitmap)]
615    #[doc = "The `createImageBitmap()` method."]
616    #[doc = ""]
617    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/createImageBitmap)"]
618    #[doc = ""]
619    #[doc = "*This API requires the following crate features to be activated: `ImageData`, `WorkerGlobalScope`*"]
620    pub fn create_image_bitmap_with_image_data_and_a_sx_and_a_sy_and_a_sw_and_a_sh(
621        this: &WorkerGlobalScope,
622        a_image: &ImageData,
623        a_sx: i32,
624        a_sy: i32,
625        a_sw: i32,
626        a_sh: i32,
627    ) -> Result<::js_sys::Promise, JsValue>;
628    #[cfg(all(feature = "HtmlImageElement", feature = "ImageBitmapOptions",))]
629    # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = createImageBitmap)]
630    #[doc = "The `createImageBitmap()` method."]
631    #[doc = ""]
632    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/createImageBitmap)"]
633    #[doc = ""]
634    #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`, `ImageBitmapOptions`, `WorkerGlobalScope`*"]
635    pub fn create_image_bitmap_with_html_image_element_and_a_sx_and_a_sy_and_a_sw_and_a_sh_and_a_options(
636        this: &WorkerGlobalScope,
637        a_image: &HtmlImageElement,
638        a_sx: i32,
639        a_sy: i32,
640        a_sw: i32,
641        a_sh: i32,
642        a_options: &ImageBitmapOptions,
643    ) -> Result<::js_sys::Promise, JsValue>;
644    #[cfg(all(feature = "ImageBitmapOptions", feature = "SvgImageElement",))]
645    # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = createImageBitmap)]
646    #[doc = "The `createImageBitmap()` method."]
647    #[doc = ""]
648    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/createImageBitmap)"]
649    #[doc = ""]
650    #[doc = "*This API requires the following crate features to be activated: `ImageBitmapOptions`, `SvgImageElement`, `WorkerGlobalScope`*"]
651    pub fn create_image_bitmap_with_svg_image_element_and_a_sx_and_a_sy_and_a_sw_and_a_sh_and_a_options(
652        this: &WorkerGlobalScope,
653        a_image: &SvgImageElement,
654        a_sx: i32,
655        a_sy: i32,
656        a_sw: i32,
657        a_sh: i32,
658        a_options: &ImageBitmapOptions,
659    ) -> Result<::js_sys::Promise, JsValue>;
660    #[cfg(all(feature = "HtmlCanvasElement", feature = "ImageBitmapOptions",))]
661    # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = createImageBitmap)]
662    #[doc = "The `createImageBitmap()` method."]
663    #[doc = ""]
664    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/createImageBitmap)"]
665    #[doc = ""]
666    #[doc = "*This API requires the following crate features to be activated: `HtmlCanvasElement`, `ImageBitmapOptions`, `WorkerGlobalScope`*"]
667    pub fn create_image_bitmap_with_html_canvas_element_and_a_sx_and_a_sy_and_a_sw_and_a_sh_and_a_options(
668        this: &WorkerGlobalScope,
669        a_image: &HtmlCanvasElement,
670        a_sx: i32,
671        a_sy: i32,
672        a_sw: i32,
673        a_sh: i32,
674        a_options: &ImageBitmapOptions,
675    ) -> Result<::js_sys::Promise, JsValue>;
676    #[cfg(all(feature = "HtmlVideoElement", feature = "ImageBitmapOptions",))]
677    # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = createImageBitmap)]
678    #[doc = "The `createImageBitmap()` method."]
679    #[doc = ""]
680    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/createImageBitmap)"]
681    #[doc = ""]
682    #[doc = "*This API requires the following crate features to be activated: `HtmlVideoElement`, `ImageBitmapOptions`, `WorkerGlobalScope`*"]
683    pub fn create_image_bitmap_with_html_video_element_and_a_sx_and_a_sy_and_a_sw_and_a_sh_and_a_options(
684        this: &WorkerGlobalScope,
685        a_image: &HtmlVideoElement,
686        a_sx: i32,
687        a_sy: i32,
688        a_sw: i32,
689        a_sh: i32,
690        a_options: &ImageBitmapOptions,
691    ) -> Result<::js_sys::Promise, JsValue>;
692    #[cfg(all(feature = "ImageBitmap", feature = "ImageBitmapOptions",))]
693    # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = createImageBitmap)]
694    #[doc = "The `createImageBitmap()` method."]
695    #[doc = ""]
696    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/createImageBitmap)"]
697    #[doc = ""]
698    #[doc = "*This API requires the following crate features to be activated: `ImageBitmap`, `ImageBitmapOptions`, `WorkerGlobalScope`*"]
699    pub fn create_image_bitmap_with_image_bitmap_and_a_sx_and_a_sy_and_a_sw_and_a_sh_and_a_options(
700        this: &WorkerGlobalScope,
701        a_image: &ImageBitmap,
702        a_sx: i32,
703        a_sy: i32,
704        a_sw: i32,
705        a_sh: i32,
706        a_options: &ImageBitmapOptions,
707    ) -> Result<::js_sys::Promise, JsValue>;
708    #[cfg(all(feature = "ImageBitmapOptions", feature = "OffscreenCanvas",))]
709    # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = createImageBitmap)]
710    #[doc = "The `createImageBitmap()` method."]
711    #[doc = ""]
712    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/createImageBitmap)"]
713    #[doc = ""]
714    #[doc = "*This API requires the following crate features to be activated: `ImageBitmapOptions`, `OffscreenCanvas`, `WorkerGlobalScope`*"]
715    pub fn create_image_bitmap_with_offscreen_canvas_and_a_sx_and_a_sy_and_a_sw_and_a_sh_and_a_options(
716        this: &WorkerGlobalScope,
717        a_image: &OffscreenCanvas,
718        a_sx: i32,
719        a_sy: i32,
720        a_sw: i32,
721        a_sh: i32,
722        a_options: &ImageBitmapOptions,
723    ) -> Result<::js_sys::Promise, JsValue>;
724    #[cfg(all(
725        feature = "ImageBitmap",
726        feature = "ImageBitmapOptions",
727        feature = "VideoFrame",
728    ))]
729    # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = createImageBitmap)]
730    #[doc = "The `createImageBitmap()` method."]
731    #[doc = ""]
732    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/createImageBitmap)"]
733    #[doc = ""]
734    #[doc = "*This API requires the following crate features to be activated: `ImageBitmap`, `ImageBitmapOptions`, `VideoFrame`, `WorkerGlobalScope`*"]
735    pub fn create_image_bitmap_with_video_frame_and_a_sx_and_a_sy_and_a_sw_and_a_sh_and_a_options(
736        this: &WorkerGlobalScope,
737        a_image: &VideoFrame,
738        a_sx: i32,
739        a_sy: i32,
740        a_sw: i32,
741        a_sh: i32,
742        a_options: &ImageBitmapOptions,
743    ) -> Result<::js_sys::Promise<ImageBitmap>, JsValue>;
744    #[cfg(all(feature = "Blob", feature = "ImageBitmapOptions",))]
745    # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = createImageBitmap)]
746    #[doc = "The `createImageBitmap()` method."]
747    #[doc = ""]
748    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/createImageBitmap)"]
749    #[doc = ""]
750    #[doc = "*This API requires the following crate features to be activated: `Blob`, `ImageBitmapOptions`, `WorkerGlobalScope`*"]
751    pub fn create_image_bitmap_with_blob_and_a_sx_and_a_sy_and_a_sw_and_a_sh_and_a_options(
752        this: &WorkerGlobalScope,
753        a_image: &Blob,
754        a_sx: i32,
755        a_sy: i32,
756        a_sw: i32,
757        a_sh: i32,
758        a_options: &ImageBitmapOptions,
759    ) -> Result<::js_sys::Promise, JsValue>;
760    #[cfg(all(feature = "ImageBitmapOptions", feature = "ImageData",))]
761    # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = createImageBitmap)]
762    #[doc = "The `createImageBitmap()` method."]
763    #[doc = ""]
764    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/createImageBitmap)"]
765    #[doc = ""]
766    #[doc = "*This API requires the following crate features to be activated: `ImageBitmapOptions`, `ImageData`, `WorkerGlobalScope`*"]
767    pub fn create_image_bitmap_with_image_data_and_a_sx_and_a_sy_and_a_sw_and_a_sh_and_a_options(
768        this: &WorkerGlobalScope,
769        a_image: &ImageData,
770        a_sx: i32,
771        a_sy: i32,
772        a_sw: i32,
773        a_sh: i32,
774        a_options: &ImageBitmapOptions,
775    ) -> Result<::js_sys::Promise, JsValue>;
776    #[cfg(feature = "Request")]
777    # [wasm_bindgen (method , structural , js_class = "WorkerGlobalScope" , js_name = fetch)]
778    #[doc = "The `fetch()` method."]
779    #[doc = ""]
780    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/fetch)"]
781    #[doc = ""]
782    #[doc = "*This API requires the following crate features to be activated: `Request`, `WorkerGlobalScope`*"]
783    pub fn fetch_with_request(this: &WorkerGlobalScope, input: &Request) -> ::js_sys::Promise;
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: `WorkerGlobalScope`*"]
790    pub fn fetch_with_str(this: &WorkerGlobalScope, input: &str) -> ::js_sys::Promise;
791    #[cfg(all(feature = "Request", feature = "RequestInit",))]
792    # [wasm_bindgen (method , structural , js_class = "WorkerGlobalScope" , js_name = fetch)]
793    #[doc = "The `fetch()` method."]
794    #[doc = ""]
795    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/fetch)"]
796    #[doc = ""]
797    #[doc = "*This API requires the following crate features to be activated: `Request`, `RequestInit`, `WorkerGlobalScope`*"]
798    pub fn fetch_with_request_and_init(
799        this: &WorkerGlobalScope,
800        input: &Request,
801        init: &RequestInit,
802    ) -> ::js_sys::Promise;
803    #[cfg(feature = "RequestInit")]
804    # [wasm_bindgen (method , structural , js_class = "WorkerGlobalScope" , js_name = fetch)]
805    #[doc = "The `fetch()` method."]
806    #[doc = ""]
807    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/fetch)"]
808    #[doc = ""]
809    #[doc = "*This API requires the following crate features to be activated: `RequestInit`, `WorkerGlobalScope`*"]
810    pub fn fetch_with_str_and_init(
811        this: &WorkerGlobalScope,
812        input: &str,
813        init: &RequestInit,
814    ) -> ::js_sys::Promise;
815    # [wasm_bindgen (method , structural , js_class = "WorkerGlobalScope" , js_name = queueMicrotask)]
816    #[doc = "The `queueMicrotask()` method."]
817    #[doc = ""]
818    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/queueMicrotask)"]
819    #[doc = ""]
820    #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
821    pub fn queue_microtask(this: &WorkerGlobalScope, callback: &::js_sys::Function);
822    # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setInterval)]
823    #[doc = "The `setInterval()` method."]
824    #[doc = ""]
825    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setInterval)"]
826    #[doc = ""]
827    #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
828    pub fn set_interval_with_callback(
829        this: &WorkerGlobalScope,
830        handler: &::js_sys::Function,
831    ) -> Result<i32, JsValue>;
832    # [wasm_bindgen (catch , method , structural , variadic , js_class = "WorkerGlobalScope" , js_name = setInterval)]
833    #[doc = "The `setInterval()` method."]
834    #[doc = ""]
835    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setInterval)"]
836    #[doc = ""]
837    #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
838    pub fn set_interval_with_callback_and_timeout_and_arguments(
839        this: &WorkerGlobalScope,
840        handler: &::js_sys::Function,
841        timeout: i32,
842        arguments: &::js_sys::Array,
843    ) -> Result<i32, JsValue>;
844    # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setInterval)]
845    #[doc = "The `setInterval()` method."]
846    #[doc = ""]
847    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setInterval)"]
848    #[doc = ""]
849    #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
850    pub fn set_interval_with_callback_and_timeout_and_arguments_0(
851        this: &WorkerGlobalScope,
852        handler: &::js_sys::Function,
853        timeout: i32,
854    ) -> Result<i32, JsValue>;
855    # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setInterval)]
856    #[doc = "The `setInterval()` method."]
857    #[doc = ""]
858    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setInterval)"]
859    #[doc = ""]
860    #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
861    pub fn set_interval_with_callback_and_timeout_and_arguments_1(
862        this: &WorkerGlobalScope,
863        handler: &::js_sys::Function,
864        timeout: i32,
865        arguments_1: &::wasm_bindgen::JsValue,
866    ) -> Result<i32, JsValue>;
867    # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setInterval)]
868    #[doc = "The `setInterval()` method."]
869    #[doc = ""]
870    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setInterval)"]
871    #[doc = ""]
872    #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
873    pub fn set_interval_with_callback_and_timeout_and_arguments_2(
874        this: &WorkerGlobalScope,
875        handler: &::js_sys::Function,
876        timeout: i32,
877        arguments_1: &::wasm_bindgen::JsValue,
878        arguments_2: &::wasm_bindgen::JsValue,
879    ) -> Result<i32, JsValue>;
880    # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setInterval)]
881    #[doc = "The `setInterval()` method."]
882    #[doc = ""]
883    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setInterval)"]
884    #[doc = ""]
885    #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
886    pub fn set_interval_with_callback_and_timeout_and_arguments_3(
887        this: &WorkerGlobalScope,
888        handler: &::js_sys::Function,
889        timeout: i32,
890        arguments_1: &::wasm_bindgen::JsValue,
891        arguments_2: &::wasm_bindgen::JsValue,
892        arguments_3: &::wasm_bindgen::JsValue,
893    ) -> Result<i32, JsValue>;
894    # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setInterval)]
895    #[doc = "The `setInterval()` method."]
896    #[doc = ""]
897    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setInterval)"]
898    #[doc = ""]
899    #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
900    pub fn set_interval_with_callback_and_timeout_and_arguments_4(
901        this: &WorkerGlobalScope,
902        handler: &::js_sys::Function,
903        timeout: i32,
904        arguments_1: &::wasm_bindgen::JsValue,
905        arguments_2: &::wasm_bindgen::JsValue,
906        arguments_3: &::wasm_bindgen::JsValue,
907        arguments_4: &::wasm_bindgen::JsValue,
908    ) -> Result<i32, JsValue>;
909    # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setInterval)]
910    #[doc = "The `setInterval()` method."]
911    #[doc = ""]
912    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setInterval)"]
913    #[doc = ""]
914    #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
915    pub fn set_interval_with_callback_and_timeout_and_arguments_5(
916        this: &WorkerGlobalScope,
917        handler: &::js_sys::Function,
918        timeout: i32,
919        arguments_1: &::wasm_bindgen::JsValue,
920        arguments_2: &::wasm_bindgen::JsValue,
921        arguments_3: &::wasm_bindgen::JsValue,
922        arguments_4: &::wasm_bindgen::JsValue,
923        arguments_5: &::wasm_bindgen::JsValue,
924    ) -> Result<i32, JsValue>;
925    # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setInterval)]
926    #[doc = "The `setInterval()` method."]
927    #[doc = ""]
928    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setInterval)"]
929    #[doc = ""]
930    #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
931    pub fn set_interval_with_callback_and_timeout_and_arguments_6(
932        this: &WorkerGlobalScope,
933        handler: &::js_sys::Function,
934        timeout: i32,
935        arguments_1: &::wasm_bindgen::JsValue,
936        arguments_2: &::wasm_bindgen::JsValue,
937        arguments_3: &::wasm_bindgen::JsValue,
938        arguments_4: &::wasm_bindgen::JsValue,
939        arguments_5: &::wasm_bindgen::JsValue,
940        arguments_6: &::wasm_bindgen::JsValue,
941    ) -> Result<i32, JsValue>;
942    # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setInterval)]
943    #[doc = "The `setInterval()` method."]
944    #[doc = ""]
945    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setInterval)"]
946    #[doc = ""]
947    #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
948    pub fn set_interval_with_callback_and_timeout_and_arguments_7(
949        this: &WorkerGlobalScope,
950        handler: &::js_sys::Function,
951        timeout: i32,
952        arguments_1: &::wasm_bindgen::JsValue,
953        arguments_2: &::wasm_bindgen::JsValue,
954        arguments_3: &::wasm_bindgen::JsValue,
955        arguments_4: &::wasm_bindgen::JsValue,
956        arguments_5: &::wasm_bindgen::JsValue,
957        arguments_6: &::wasm_bindgen::JsValue,
958        arguments_7: &::wasm_bindgen::JsValue,
959    ) -> Result<i32, JsValue>;
960    # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setInterval)]
961    #[doc = "The `setInterval()` method."]
962    #[doc = ""]
963    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setInterval)"]
964    #[doc = ""]
965    #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
966    pub fn set_interval_with_str(this: &WorkerGlobalScope, handler: &str) -> Result<i32, JsValue>;
967    # [wasm_bindgen (catch , method , structural , variadic , js_class = "WorkerGlobalScope" , js_name = setInterval)]
968    #[doc = "The `setInterval()` method."]
969    #[doc = ""]
970    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setInterval)"]
971    #[doc = ""]
972    #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
973    pub fn set_interval_with_str_and_timeout_and_unused(
974        this: &WorkerGlobalScope,
975        handler: &str,
976        timeout: i32,
977        unused: &::js_sys::Array,
978    ) -> Result<i32, JsValue>;
979    # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setInterval)]
980    #[doc = "The `setInterval()` method."]
981    #[doc = ""]
982    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setInterval)"]
983    #[doc = ""]
984    #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
985    pub fn set_interval_with_str_and_timeout_and_unused_0(
986        this: &WorkerGlobalScope,
987        handler: &str,
988        timeout: i32,
989    ) -> Result<i32, JsValue>;
990    # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setInterval)]
991    #[doc = "The `setInterval()` method."]
992    #[doc = ""]
993    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setInterval)"]
994    #[doc = ""]
995    #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
996    pub fn set_interval_with_str_and_timeout_and_unused_1(
997        this: &WorkerGlobalScope,
998        handler: &str,
999        timeout: i32,
1000        unused_1: &::wasm_bindgen::JsValue,
1001    ) -> Result<i32, JsValue>;
1002    # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setInterval)]
1003    #[doc = "The `setInterval()` method."]
1004    #[doc = ""]
1005    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setInterval)"]
1006    #[doc = ""]
1007    #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
1008    pub fn set_interval_with_str_and_timeout_and_unused_2(
1009        this: &WorkerGlobalScope,
1010        handler: &str,
1011        timeout: i32,
1012        unused_1: &::wasm_bindgen::JsValue,
1013        unused_2: &::wasm_bindgen::JsValue,
1014    ) -> Result<i32, JsValue>;
1015    # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setInterval)]
1016    #[doc = "The `setInterval()` method."]
1017    #[doc = ""]
1018    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setInterval)"]
1019    #[doc = ""]
1020    #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
1021    pub fn set_interval_with_str_and_timeout_and_unused_3(
1022        this: &WorkerGlobalScope,
1023        handler: &str,
1024        timeout: i32,
1025        unused_1: &::wasm_bindgen::JsValue,
1026        unused_2: &::wasm_bindgen::JsValue,
1027        unused_3: &::wasm_bindgen::JsValue,
1028    ) -> Result<i32, JsValue>;
1029    # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setInterval)]
1030    #[doc = "The `setInterval()` method."]
1031    #[doc = ""]
1032    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setInterval)"]
1033    #[doc = ""]
1034    #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
1035    pub fn set_interval_with_str_and_timeout_and_unused_4(
1036        this: &WorkerGlobalScope,
1037        handler: &str,
1038        timeout: i32,
1039        unused_1: &::wasm_bindgen::JsValue,
1040        unused_2: &::wasm_bindgen::JsValue,
1041        unused_3: &::wasm_bindgen::JsValue,
1042        unused_4: &::wasm_bindgen::JsValue,
1043    ) -> Result<i32, JsValue>;
1044    # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setInterval)]
1045    #[doc = "The `setInterval()` method."]
1046    #[doc = ""]
1047    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setInterval)"]
1048    #[doc = ""]
1049    #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
1050    pub fn set_interval_with_str_and_timeout_and_unused_5(
1051        this: &WorkerGlobalScope,
1052        handler: &str,
1053        timeout: i32,
1054        unused_1: &::wasm_bindgen::JsValue,
1055        unused_2: &::wasm_bindgen::JsValue,
1056        unused_3: &::wasm_bindgen::JsValue,
1057        unused_4: &::wasm_bindgen::JsValue,
1058        unused_5: &::wasm_bindgen::JsValue,
1059    ) -> Result<i32, JsValue>;
1060    # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setInterval)]
1061    #[doc = "The `setInterval()` method."]
1062    #[doc = ""]
1063    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setInterval)"]
1064    #[doc = ""]
1065    #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
1066    pub fn set_interval_with_str_and_timeout_and_unused_6(
1067        this: &WorkerGlobalScope,
1068        handler: &str,
1069        timeout: i32,
1070        unused_1: &::wasm_bindgen::JsValue,
1071        unused_2: &::wasm_bindgen::JsValue,
1072        unused_3: &::wasm_bindgen::JsValue,
1073        unused_4: &::wasm_bindgen::JsValue,
1074        unused_5: &::wasm_bindgen::JsValue,
1075        unused_6: &::wasm_bindgen::JsValue,
1076    ) -> Result<i32, JsValue>;
1077    # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setInterval)]
1078    #[doc = "The `setInterval()` method."]
1079    #[doc = ""]
1080    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setInterval)"]
1081    #[doc = ""]
1082    #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
1083    pub fn set_interval_with_str_and_timeout_and_unused_7(
1084        this: &WorkerGlobalScope,
1085        handler: &str,
1086        timeout: i32,
1087        unused_1: &::wasm_bindgen::JsValue,
1088        unused_2: &::wasm_bindgen::JsValue,
1089        unused_3: &::wasm_bindgen::JsValue,
1090        unused_4: &::wasm_bindgen::JsValue,
1091        unused_5: &::wasm_bindgen::JsValue,
1092        unused_6: &::wasm_bindgen::JsValue,
1093        unused_7: &::wasm_bindgen::JsValue,
1094    ) -> Result<i32, JsValue>;
1095    # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setTimeout)]
1096    #[doc = "The `setTimeout()` method."]
1097    #[doc = ""]
1098    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setTimeout)"]
1099    #[doc = ""]
1100    #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
1101    pub fn set_timeout_with_callback(
1102        this: &WorkerGlobalScope,
1103        handler: &::js_sys::Function,
1104    ) -> Result<i32, JsValue>;
1105    # [wasm_bindgen (catch , method , structural , variadic , js_class = "WorkerGlobalScope" , js_name = setTimeout)]
1106    #[doc = "The `setTimeout()` method."]
1107    #[doc = ""]
1108    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setTimeout)"]
1109    #[doc = ""]
1110    #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
1111    pub fn set_timeout_with_callback_and_timeout_and_arguments(
1112        this: &WorkerGlobalScope,
1113        handler: &::js_sys::Function,
1114        timeout: i32,
1115        arguments: &::js_sys::Array,
1116    ) -> Result<i32, JsValue>;
1117    # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setTimeout)]
1118    #[doc = "The `setTimeout()` method."]
1119    #[doc = ""]
1120    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setTimeout)"]
1121    #[doc = ""]
1122    #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
1123    pub fn set_timeout_with_callback_and_timeout_and_arguments_0(
1124        this: &WorkerGlobalScope,
1125        handler: &::js_sys::Function,
1126        timeout: i32,
1127    ) -> Result<i32, JsValue>;
1128    # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setTimeout)]
1129    #[doc = "The `setTimeout()` method."]
1130    #[doc = ""]
1131    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setTimeout)"]
1132    #[doc = ""]
1133    #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
1134    pub fn set_timeout_with_callback_and_timeout_and_arguments_1(
1135        this: &WorkerGlobalScope,
1136        handler: &::js_sys::Function,
1137        timeout: i32,
1138        arguments_1: &::wasm_bindgen::JsValue,
1139    ) -> Result<i32, JsValue>;
1140    # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setTimeout)]
1141    #[doc = "The `setTimeout()` method."]
1142    #[doc = ""]
1143    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setTimeout)"]
1144    #[doc = ""]
1145    #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
1146    pub fn set_timeout_with_callback_and_timeout_and_arguments_2(
1147        this: &WorkerGlobalScope,
1148        handler: &::js_sys::Function,
1149        timeout: i32,
1150        arguments_1: &::wasm_bindgen::JsValue,
1151        arguments_2: &::wasm_bindgen::JsValue,
1152    ) -> Result<i32, JsValue>;
1153    # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setTimeout)]
1154    #[doc = "The `setTimeout()` method."]
1155    #[doc = ""]
1156    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setTimeout)"]
1157    #[doc = ""]
1158    #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
1159    pub fn set_timeout_with_callback_and_timeout_and_arguments_3(
1160        this: &WorkerGlobalScope,
1161        handler: &::js_sys::Function,
1162        timeout: i32,
1163        arguments_1: &::wasm_bindgen::JsValue,
1164        arguments_2: &::wasm_bindgen::JsValue,
1165        arguments_3: &::wasm_bindgen::JsValue,
1166    ) -> Result<i32, JsValue>;
1167    # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setTimeout)]
1168    #[doc = "The `setTimeout()` method."]
1169    #[doc = ""]
1170    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setTimeout)"]
1171    #[doc = ""]
1172    #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
1173    pub fn set_timeout_with_callback_and_timeout_and_arguments_4(
1174        this: &WorkerGlobalScope,
1175        handler: &::js_sys::Function,
1176        timeout: i32,
1177        arguments_1: &::wasm_bindgen::JsValue,
1178        arguments_2: &::wasm_bindgen::JsValue,
1179        arguments_3: &::wasm_bindgen::JsValue,
1180        arguments_4: &::wasm_bindgen::JsValue,
1181    ) -> Result<i32, JsValue>;
1182    # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setTimeout)]
1183    #[doc = "The `setTimeout()` method."]
1184    #[doc = ""]
1185    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setTimeout)"]
1186    #[doc = ""]
1187    #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
1188    pub fn set_timeout_with_callback_and_timeout_and_arguments_5(
1189        this: &WorkerGlobalScope,
1190        handler: &::js_sys::Function,
1191        timeout: i32,
1192        arguments_1: &::wasm_bindgen::JsValue,
1193        arguments_2: &::wasm_bindgen::JsValue,
1194        arguments_3: &::wasm_bindgen::JsValue,
1195        arguments_4: &::wasm_bindgen::JsValue,
1196        arguments_5: &::wasm_bindgen::JsValue,
1197    ) -> Result<i32, JsValue>;
1198    # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setTimeout)]
1199    #[doc = "The `setTimeout()` method."]
1200    #[doc = ""]
1201    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setTimeout)"]
1202    #[doc = ""]
1203    #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
1204    pub fn set_timeout_with_callback_and_timeout_and_arguments_6(
1205        this: &WorkerGlobalScope,
1206        handler: &::js_sys::Function,
1207        timeout: i32,
1208        arguments_1: &::wasm_bindgen::JsValue,
1209        arguments_2: &::wasm_bindgen::JsValue,
1210        arguments_3: &::wasm_bindgen::JsValue,
1211        arguments_4: &::wasm_bindgen::JsValue,
1212        arguments_5: &::wasm_bindgen::JsValue,
1213        arguments_6: &::wasm_bindgen::JsValue,
1214    ) -> Result<i32, JsValue>;
1215    # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setTimeout)]
1216    #[doc = "The `setTimeout()` method."]
1217    #[doc = ""]
1218    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setTimeout)"]
1219    #[doc = ""]
1220    #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
1221    pub fn set_timeout_with_callback_and_timeout_and_arguments_7(
1222        this: &WorkerGlobalScope,
1223        handler: &::js_sys::Function,
1224        timeout: i32,
1225        arguments_1: &::wasm_bindgen::JsValue,
1226        arguments_2: &::wasm_bindgen::JsValue,
1227        arguments_3: &::wasm_bindgen::JsValue,
1228        arguments_4: &::wasm_bindgen::JsValue,
1229        arguments_5: &::wasm_bindgen::JsValue,
1230        arguments_6: &::wasm_bindgen::JsValue,
1231        arguments_7: &::wasm_bindgen::JsValue,
1232    ) -> Result<i32, JsValue>;
1233    # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setTimeout)]
1234    #[doc = "The `setTimeout()` method."]
1235    #[doc = ""]
1236    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setTimeout)"]
1237    #[doc = ""]
1238    #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
1239    pub fn set_timeout_with_str(this: &WorkerGlobalScope, handler: &str) -> Result<i32, JsValue>;
1240    # [wasm_bindgen (catch , method , structural , variadic , js_class = "WorkerGlobalScope" , js_name = setTimeout)]
1241    #[doc = "The `setTimeout()` method."]
1242    #[doc = ""]
1243    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setTimeout)"]
1244    #[doc = ""]
1245    #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
1246    pub fn set_timeout_with_str_and_timeout_and_unused(
1247        this: &WorkerGlobalScope,
1248        handler: &str,
1249        timeout: i32,
1250        unused: &::js_sys::Array,
1251    ) -> Result<i32, JsValue>;
1252    # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setTimeout)]
1253    #[doc = "The `setTimeout()` method."]
1254    #[doc = ""]
1255    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setTimeout)"]
1256    #[doc = ""]
1257    #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
1258    pub fn set_timeout_with_str_and_timeout_and_unused_0(
1259        this: &WorkerGlobalScope,
1260        handler: &str,
1261        timeout: i32,
1262    ) -> Result<i32, JsValue>;
1263    # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setTimeout)]
1264    #[doc = "The `setTimeout()` method."]
1265    #[doc = ""]
1266    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setTimeout)"]
1267    #[doc = ""]
1268    #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
1269    pub fn set_timeout_with_str_and_timeout_and_unused_1(
1270        this: &WorkerGlobalScope,
1271        handler: &str,
1272        timeout: i32,
1273        unused_1: &::wasm_bindgen::JsValue,
1274    ) -> Result<i32, JsValue>;
1275    # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setTimeout)]
1276    #[doc = "The `setTimeout()` method."]
1277    #[doc = ""]
1278    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setTimeout)"]
1279    #[doc = ""]
1280    #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
1281    pub fn set_timeout_with_str_and_timeout_and_unused_2(
1282        this: &WorkerGlobalScope,
1283        handler: &str,
1284        timeout: i32,
1285        unused_1: &::wasm_bindgen::JsValue,
1286        unused_2: &::wasm_bindgen::JsValue,
1287    ) -> Result<i32, JsValue>;
1288    # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setTimeout)]
1289    #[doc = "The `setTimeout()` method."]
1290    #[doc = ""]
1291    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setTimeout)"]
1292    #[doc = ""]
1293    #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
1294    pub fn set_timeout_with_str_and_timeout_and_unused_3(
1295        this: &WorkerGlobalScope,
1296        handler: &str,
1297        timeout: i32,
1298        unused_1: &::wasm_bindgen::JsValue,
1299        unused_2: &::wasm_bindgen::JsValue,
1300        unused_3: &::wasm_bindgen::JsValue,
1301    ) -> Result<i32, JsValue>;
1302    # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setTimeout)]
1303    #[doc = "The `setTimeout()` method."]
1304    #[doc = ""]
1305    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setTimeout)"]
1306    #[doc = ""]
1307    #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
1308    pub fn set_timeout_with_str_and_timeout_and_unused_4(
1309        this: &WorkerGlobalScope,
1310        handler: &str,
1311        timeout: i32,
1312        unused_1: &::wasm_bindgen::JsValue,
1313        unused_2: &::wasm_bindgen::JsValue,
1314        unused_3: &::wasm_bindgen::JsValue,
1315        unused_4: &::wasm_bindgen::JsValue,
1316    ) -> Result<i32, JsValue>;
1317    # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setTimeout)]
1318    #[doc = "The `setTimeout()` method."]
1319    #[doc = ""]
1320    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setTimeout)"]
1321    #[doc = ""]
1322    #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
1323    pub fn set_timeout_with_str_and_timeout_and_unused_5(
1324        this: &WorkerGlobalScope,
1325        handler: &str,
1326        timeout: i32,
1327        unused_1: &::wasm_bindgen::JsValue,
1328        unused_2: &::wasm_bindgen::JsValue,
1329        unused_3: &::wasm_bindgen::JsValue,
1330        unused_4: &::wasm_bindgen::JsValue,
1331        unused_5: &::wasm_bindgen::JsValue,
1332    ) -> Result<i32, JsValue>;
1333    # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setTimeout)]
1334    #[doc = "The `setTimeout()` method."]
1335    #[doc = ""]
1336    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setTimeout)"]
1337    #[doc = ""]
1338    #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
1339    pub fn set_timeout_with_str_and_timeout_and_unused_6(
1340        this: &WorkerGlobalScope,
1341        handler: &str,
1342        timeout: i32,
1343        unused_1: &::wasm_bindgen::JsValue,
1344        unused_2: &::wasm_bindgen::JsValue,
1345        unused_3: &::wasm_bindgen::JsValue,
1346        unused_4: &::wasm_bindgen::JsValue,
1347        unused_5: &::wasm_bindgen::JsValue,
1348        unused_6: &::wasm_bindgen::JsValue,
1349    ) -> Result<i32, JsValue>;
1350    # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setTimeout)]
1351    #[doc = "The `setTimeout()` method."]
1352    #[doc = ""]
1353    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setTimeout)"]
1354    #[doc = ""]
1355    #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"]
1356    pub fn set_timeout_with_str_and_timeout_and_unused_7(
1357        this: &WorkerGlobalScope,
1358        handler: &str,
1359        timeout: i32,
1360        unused_1: &::wasm_bindgen::JsValue,
1361        unused_2: &::wasm_bindgen::JsValue,
1362        unused_3: &::wasm_bindgen::JsValue,
1363        unused_4: &::wasm_bindgen::JsValue,
1364        unused_5: &::wasm_bindgen::JsValue,
1365        unused_6: &::wasm_bindgen::JsValue,
1366        unused_7: &::wasm_bindgen::JsValue,
1367    ) -> Result<i32, JsValue>;
1368}