maxcountryman_web_sys/features/
gen_WorkerDebuggerGlobalScope.rs

1#![allow(unused_imports)]
2use super::*;
3use wasm_bindgen::prelude::*;
4#[wasm_bindgen]
5extern "C" {
6    # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = WorkerDebuggerGlobalScope , typescript_type = "WorkerDebuggerGlobalScope")]
7    #[derive(Debug, Clone, PartialEq, Eq)]
8    #[doc = "The `WorkerDebuggerGlobalScope` class."]
9    #[doc = ""]
10    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerDebuggerGlobalScope)"]
11    #[doc = ""]
12    #[doc = "*This API requires the following crate features to be activated: `WorkerDebuggerGlobalScope`*"]
13    pub type WorkerDebuggerGlobalScope;
14    # [wasm_bindgen (structural , catch , method , getter , js_class = "WorkerDebuggerGlobalScope" , js_name = global)]
15    #[doc = "Getter for the `global` field of this object."]
16    #[doc = ""]
17    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerDebuggerGlobalScope/global)"]
18    #[doc = ""]
19    #[doc = "*This API requires the following crate features to be activated: `WorkerDebuggerGlobalScope`*"]
20    pub fn global(this: &WorkerDebuggerGlobalScope) -> Result<::js_sys::Object, JsValue>;
21    # [wasm_bindgen (structural , method , getter , js_class = "WorkerDebuggerGlobalScope" , js_name = onmessage)]
22    #[doc = "Getter for the `onmessage` field of this object."]
23    #[doc = ""]
24    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerDebuggerGlobalScope/onmessage)"]
25    #[doc = ""]
26    #[doc = "*This API requires the following crate features to be activated: `WorkerDebuggerGlobalScope`*"]
27    pub fn onmessage(this: &WorkerDebuggerGlobalScope) -> Option<::js_sys::Function>;
28    # [wasm_bindgen (structural , method , setter , js_class = "WorkerDebuggerGlobalScope" , js_name = onmessage)]
29    #[doc = "Setter for the `onmessage` field of this object."]
30    #[doc = ""]
31    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerDebuggerGlobalScope/onmessage)"]
32    #[doc = ""]
33    #[doc = "*This API requires the following crate features to be activated: `WorkerDebuggerGlobalScope`*"]
34    pub fn set_onmessage(this: &WorkerDebuggerGlobalScope, value: Option<&::js_sys::Function>);
35    # [wasm_bindgen (catch , method , structural , js_class = "WorkerDebuggerGlobalScope" , js_name = createSandbox)]
36    #[doc = "The `createSandbox()` method."]
37    #[doc = ""]
38    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerDebuggerGlobalScope/createSandbox)"]
39    #[doc = ""]
40    #[doc = "*This API requires the following crate features to be activated: `WorkerDebuggerGlobalScope`*"]
41    pub fn create_sandbox(
42        this: &WorkerDebuggerGlobalScope,
43        name: &str,
44        prototype: &::js_sys::Object,
45    ) -> Result<::js_sys::Object, JsValue>;
46    # [wasm_bindgen (method , structural , js_class = "WorkerDebuggerGlobalScope" , js_name = dump)]
47    #[doc = "The `dump()` method."]
48    #[doc = ""]
49    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerDebuggerGlobalScope/dump)"]
50    #[doc = ""]
51    #[doc = "*This API requires the following crate features to be activated: `WorkerDebuggerGlobalScope`*"]
52    pub fn dump(this: &WorkerDebuggerGlobalScope);
53    # [wasm_bindgen (method , structural , js_class = "WorkerDebuggerGlobalScope" , js_name = dump)]
54    #[doc = "The `dump()` method."]
55    #[doc = ""]
56    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerDebuggerGlobalScope/dump)"]
57    #[doc = ""]
58    #[doc = "*This API requires the following crate features to be activated: `WorkerDebuggerGlobalScope`*"]
59    pub fn dump_with_string(this: &WorkerDebuggerGlobalScope, string: &str);
60    # [wasm_bindgen (method , structural , js_class = "WorkerDebuggerGlobalScope" , js_name = enterEventLoop)]
61    #[doc = "The `enterEventLoop()` method."]
62    #[doc = ""]
63    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerDebuggerGlobalScope/enterEventLoop)"]
64    #[doc = ""]
65    #[doc = "*This API requires the following crate features to be activated: `WorkerDebuggerGlobalScope`*"]
66    pub fn enter_event_loop(this: &WorkerDebuggerGlobalScope);
67    # [wasm_bindgen (method , structural , js_class = "WorkerDebuggerGlobalScope" , js_name = leaveEventLoop)]
68    #[doc = "The `leaveEventLoop()` method."]
69    #[doc = ""]
70    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerDebuggerGlobalScope/leaveEventLoop)"]
71    #[doc = ""]
72    #[doc = "*This API requires the following crate features to be activated: `WorkerDebuggerGlobalScope`*"]
73    pub fn leave_event_loop(this: &WorkerDebuggerGlobalScope);
74    # [wasm_bindgen (catch , method , structural , js_class = "WorkerDebuggerGlobalScope" , js_name = loadSubScript)]
75    #[doc = "The `loadSubScript()` method."]
76    #[doc = ""]
77    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerDebuggerGlobalScope/loadSubScript)"]
78    #[doc = ""]
79    #[doc = "*This API requires the following crate features to be activated: `WorkerDebuggerGlobalScope`*"]
80    pub fn load_sub_script(this: &WorkerDebuggerGlobalScope, url: &str) -> Result<(), JsValue>;
81    # [wasm_bindgen (catch , method , structural , js_class = "WorkerDebuggerGlobalScope" , js_name = loadSubScript)]
82    #[doc = "The `loadSubScript()` method."]
83    #[doc = ""]
84    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerDebuggerGlobalScope/loadSubScript)"]
85    #[doc = ""]
86    #[doc = "*This API requires the following crate features to be activated: `WorkerDebuggerGlobalScope`*"]
87    pub fn load_sub_script_with_sandbox(
88        this: &WorkerDebuggerGlobalScope,
89        url: &str,
90        sandbox: &::js_sys::Object,
91    ) -> Result<(), JsValue>;
92    # [wasm_bindgen (method , structural , js_class = "WorkerDebuggerGlobalScope" , js_name = postMessage)]
93    #[doc = "The `postMessage()` method."]
94    #[doc = ""]
95    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerDebuggerGlobalScope/postMessage)"]
96    #[doc = ""]
97    #[doc = "*This API requires the following crate features to be activated: `WorkerDebuggerGlobalScope`*"]
98    pub fn post_message(this: &WorkerDebuggerGlobalScope, message: &str);
99    # [wasm_bindgen (method , structural , js_class = "WorkerDebuggerGlobalScope" , js_name = reportError)]
100    #[doc = "The `reportError()` method."]
101    #[doc = ""]
102    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerDebuggerGlobalScope/reportError)"]
103    #[doc = ""]
104    #[doc = "*This API requires the following crate features to be activated: `WorkerDebuggerGlobalScope`*"]
105    pub fn report_error(this: &WorkerDebuggerGlobalScope, message: &str);
106    # [wasm_bindgen (catch , method , structural , js_class = "WorkerDebuggerGlobalScope" , js_name = retrieveConsoleEvents)]
107    #[doc = "The `retrieveConsoleEvents()` method."]
108    #[doc = ""]
109    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerDebuggerGlobalScope/retrieveConsoleEvents)"]
110    #[doc = ""]
111    #[doc = "*This API requires the following crate features to be activated: `WorkerDebuggerGlobalScope`*"]
112    pub fn retrieve_console_events(
113        this: &WorkerDebuggerGlobalScope,
114    ) -> Result<::js_sys::Array, JsValue>;
115    # [wasm_bindgen (catch , method , structural , js_class = "WorkerDebuggerGlobalScope" , js_name = setConsoleEventHandler)]
116    #[doc = "The `setConsoleEventHandler()` method."]
117    #[doc = ""]
118    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerDebuggerGlobalScope/setConsoleEventHandler)"]
119    #[doc = ""]
120    #[doc = "*This API requires the following crate features to be activated: `WorkerDebuggerGlobalScope`*"]
121    pub fn set_console_event_handler(
122        this: &WorkerDebuggerGlobalScope,
123        handler: Option<&::js_sys::Function>,
124    ) -> Result<(), JsValue>;
125    # [wasm_bindgen (catch , method , structural , js_class = "WorkerDebuggerGlobalScope" , js_name = setImmediate)]
126    #[doc = "The `setImmediate()` method."]
127    #[doc = ""]
128    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerDebuggerGlobalScope/setImmediate)"]
129    #[doc = ""]
130    #[doc = "*This API requires the following crate features to be activated: `WorkerDebuggerGlobalScope`*"]
131    pub fn set_immediate(
132        this: &WorkerDebuggerGlobalScope,
133        handler: &::js_sys::Function,
134    ) -> Result<(), JsValue>;
135}