Skip to main content

web_sys/features/
gen_PresentationConnectionList.rs

1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[wasm_bindgen]
6extern "C" {
7    #[wasm_bindgen(
8        extends = "EventTarget",
9        extends = "::js_sys::Object",
10        js_name = "PresentationConnectionList",
11        typescript_type = "PresentationConnectionList"
12    )]
13    #[derive(Debug, Clone, PartialEq, Eq)]
14    #[doc = "The `PresentationConnectionList` class."]
15    #[doc = ""]
16    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationConnectionList)"]
17    #[doc = ""]
18    #[doc = "*This API requires the following crate features to be activated: `PresentationConnectionList`*"]
19    pub type PresentationConnectionList;
20    #[wasm_bindgen(
21        method,
22        getter,
23        js_class = "PresentationConnectionList",
24        js_name = "connections"
25    )]
26    #[doc = "Getter for the `connections` field of this object."]
27    #[doc = ""]
28    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationConnectionList/connections)"]
29    #[doc = ""]
30    #[doc = "*This API requires the following crate features to be activated: `PresentationConnectionList`*"]
31    pub fn connections(this: &PresentationConnectionList) -> ::js_sys::Array;
32    #[wasm_bindgen(
33        method,
34        getter,
35        js_class = "PresentationConnectionList",
36        js_name = "onconnectionavailable"
37    )]
38    #[doc = "Getter for the `onconnectionavailable` field of this object."]
39    #[doc = ""]
40    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationConnectionList/onconnectionavailable)"]
41    #[doc = ""]
42    #[doc = "*This API requires the following crate features to be activated: `PresentationConnectionList`*"]
43    pub fn onconnectionavailable(this: &PresentationConnectionList) -> Option<::js_sys::Function>;
44    #[wasm_bindgen(
45        method,
46        setter,
47        js_class = "PresentationConnectionList",
48        js_name = "onconnectionavailable"
49    )]
50    #[doc = "Setter for the `onconnectionavailable` field of this object."]
51    #[doc = ""]
52    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationConnectionList/onconnectionavailable)"]
53    #[doc = ""]
54    #[doc = "*This API requires the following crate features to be activated: `PresentationConnectionList`*"]
55    pub fn set_onconnectionavailable(
56        this: &PresentationConnectionList,
57        value: Option<&::js_sys::Function>,
58    );
59}