web_sys/features/
gen_Client.rs

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