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