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