maxcountryman_web_sys/features/
gen_Client.rs1#![allow(unused_imports)]
2use super::*;
3use wasm_bindgen::prelude::*;
4#[wasm_bindgen]
5extern "C" {
6 # [wasm_bindgen (extends = :: js_sys :: Object , js_name = Client , typescript_type = "Client")]
7 #[derive(Debug, Clone, PartialEq, Eq)]
8 #[doc = "The `Client` class."]
9 #[doc = ""]
10 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Client)"]
11 #[doc = ""]
12 #[doc = "*This API requires the following crate features to be activated: `Client`*"]
13 pub type Client;
14 # [wasm_bindgen (structural , method , getter , js_class = "Client" , js_name = url)]
15 #[doc = "Getter for the `url` field of this object."]
16 #[doc = ""]
17 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Client/url)"]
18 #[doc = ""]
19 #[doc = "*This API requires the following crate features to be activated: `Client`*"]
20 pub fn url(this: &Client) -> String;
21 #[cfg(feature = "FrameType")]
22 # [wasm_bindgen (structural , method , getter , js_class = "Client" , js_name = frameType)]
23 #[doc = "Getter for the `frameType` field of this object."]
24 #[doc = ""]
25 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Client/frameType)"]
26 #[doc = ""]
27 #[doc = "*This API requires the following crate features to be activated: `Client`, `FrameType`*"]
28 pub fn frame_type(this: &Client) -> FrameType;
29 #[cfg(feature = "ClientType")]
30 # [wasm_bindgen (structural , method , getter , js_class = "Client" , js_name = type)]
31 #[doc = "Getter for the `type` field of this object."]
32 #[doc = ""]
33 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Client/type)"]
34 #[doc = ""]
35 #[doc = "*This API requires the following crate features to be activated: `Client`, `ClientType`*"]
36 pub fn type_(this: &Client) -> ClientType;
37 # [wasm_bindgen (structural , method , getter , js_class = "Client" , js_name = id)]
38 #[doc = "Getter for the `id` field of this object."]
39 #[doc = ""]
40 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Client/id)"]
41 #[doc = ""]
42 #[doc = "*This API requires the following crate features to be activated: `Client`*"]
43 pub fn id(this: &Client) -> String;
44 # [wasm_bindgen (catch , method , structural , js_class = "Client" , js_name = postMessage)]
45 #[doc = "The `postMessage()` method."]
46 #[doc = ""]
47 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Client/postMessage)"]
48 #[doc = ""]
49 #[doc = "*This API requires the following crate features to be activated: `Client`*"]
50 pub fn post_message(this: &Client, message: &::wasm_bindgen::JsValue) -> Result<(), JsValue>;
51 # [wasm_bindgen (catch , method , structural , js_class = "Client" , js_name = postMessage)]
52 #[doc = "The `postMessage()` method."]
53 #[doc = ""]
54 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Client/postMessage)"]
55 #[doc = ""]
56 #[doc = "*This API requires the following crate features to be activated: `Client`*"]
57 pub fn post_message_with_transfer(
58 this: &Client,
59 message: &::wasm_bindgen::JsValue,
60 transfer: &::wasm_bindgen::JsValue,
61 ) -> Result<(), JsValue>;
62}