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