summaryrefslogtreecommitdiffstats
path: root/vendor/web-sys/src/features/gen_MessageChannel.rs
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/web-sys/src/features/gen_MessageChannel.rs')
-rw-r--r--vendor/web-sys/src/features/gen_MessageChannel.rs37
1 files changed, 37 insertions, 0 deletions
diff --git a/vendor/web-sys/src/features/gen_MessageChannel.rs b/vendor/web-sys/src/features/gen_MessageChannel.rs
new file mode 100644
index 000000000..4422c14af
--- /dev/null
+++ b/vendor/web-sys/src/features/gen_MessageChannel.rs
@@ -0,0 +1,37 @@
+#![allow(unused_imports)]
+use super::*;
+use wasm_bindgen::prelude::*;
+#[wasm_bindgen]
+extern "C" {
+ # [wasm_bindgen (extends = :: js_sys :: Object , js_name = MessageChannel , typescript_type = "MessageChannel")]
+ #[derive(Debug, Clone, PartialEq, Eq)]
+ #[doc = "The `MessageChannel` class."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MessageChannel)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `MessageChannel`*"]
+ pub type MessageChannel;
+ #[cfg(feature = "MessagePort")]
+ # [wasm_bindgen (structural , method , getter , js_class = "MessageChannel" , js_name = port1)]
+ #[doc = "Getter for the `port1` field of this object."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MessageChannel/port1)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `MessageChannel`, `MessagePort`*"]
+ pub fn port1(this: &MessageChannel) -> MessagePort;
+ #[cfg(feature = "MessagePort")]
+ # [wasm_bindgen (structural , method , getter , js_class = "MessageChannel" , js_name = port2)]
+ #[doc = "Getter for the `port2` field of this object."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MessageChannel/port2)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `MessageChannel`, `MessagePort`*"]
+ pub fn port2(this: &MessageChannel) -> MessagePort;
+ #[wasm_bindgen(catch, constructor, js_class = "MessageChannel")]
+ #[doc = "The `new MessageChannel(..)` constructor, creating a new instance of `MessageChannel`."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MessageChannel/MessageChannel)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `MessageChannel`*"]
+ pub fn new() -> Result<MessageChannel, JsValue>;
+}