maxcountryman_web_sys/features/
gen_SharedWorkerGlobalScope.rs1#![allow(unused_imports)]
2use super::*;
3use wasm_bindgen::prelude::*;
4#[wasm_bindgen]
5extern "C" {
6 # [wasm_bindgen (extends = WorkerGlobalScope , extends = EventTarget , extends = :: js_sys :: Object , js_name = SharedWorkerGlobalScope , typescript_type = "SharedWorkerGlobalScope")]
7 #[derive(Debug, Clone, PartialEq, Eq)]
8 #[doc = "The `SharedWorkerGlobalScope` class."]
9 #[doc = ""]
10 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SharedWorkerGlobalScope)"]
11 #[doc = ""]
12 #[doc = "*This API requires the following crate features to be activated: `SharedWorkerGlobalScope`*"]
13 pub type SharedWorkerGlobalScope;
14 # [wasm_bindgen (structural , method , getter , js_class = "SharedWorkerGlobalScope" , js_name = name)]
15 #[doc = "Getter for the `name` field of this object."]
16 #[doc = ""]
17 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SharedWorkerGlobalScope/name)"]
18 #[doc = ""]
19 #[doc = "*This API requires the following crate features to be activated: `SharedWorkerGlobalScope`*"]
20 pub fn name(this: &SharedWorkerGlobalScope) -> String;
21 # [wasm_bindgen (structural , method , getter , js_class = "SharedWorkerGlobalScope" , js_name = onconnect)]
22 #[doc = "Getter for the `onconnect` field of this object."]
23 #[doc = ""]
24 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SharedWorkerGlobalScope/onconnect)"]
25 #[doc = ""]
26 #[doc = "*This API requires the following crate features to be activated: `SharedWorkerGlobalScope`*"]
27 pub fn onconnect(this: &SharedWorkerGlobalScope) -> Option<::js_sys::Function>;
28 # [wasm_bindgen (structural , method , setter , js_class = "SharedWorkerGlobalScope" , js_name = onconnect)]
29 #[doc = "Setter for the `onconnect` field of this object."]
30 #[doc = ""]
31 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SharedWorkerGlobalScope/onconnect)"]
32 #[doc = ""]
33 #[doc = "*This API requires the following crate features to be activated: `SharedWorkerGlobalScope`*"]
34 pub fn set_onconnect(this: &SharedWorkerGlobalScope, value: Option<&::js_sys::Function>);
35 # [wasm_bindgen (method , structural , js_class = "SharedWorkerGlobalScope" , js_name = close)]
36 #[doc = "The `close()` method."]
37 #[doc = ""]
38 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SharedWorkerGlobalScope/close)"]
39 #[doc = ""]
40 #[doc = "*This API requires the following crate features to be activated: `SharedWorkerGlobalScope`*"]
41 pub fn close(this: &SharedWorkerGlobalScope);
42}