1 #![allow(unused_imports)]
2 use super::*;
3 use wasm_bindgen::prelude::*;
4 #[wasm_bindgen]
5 extern "C" {
6     # [wasm_bindgen (extends = :: js_sys :: Object , js_name = RTCIceCandidate , typescript_type = "RTCIceCandidate")]
7     #[derive(Debug, Clone, PartialEq, Eq)]
8     #[doc = "The `RtcIceCandidate` class."]
9     #[doc = ""]
10     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCIceCandidate)"]
11     #[doc = ""]
12     #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidate`*"]
13     pub type RtcIceCandidate;
14     # [wasm_bindgen (structural , method , getter , js_class = "RTCIceCandidate" , js_name = candidate)]
15     #[doc = "Getter for the `candidate` field of this object."]
16     #[doc = ""]
17     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCIceCandidate/candidate)"]
18     #[doc = ""]
19     #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidate`*"]
candidate(this: &RtcIceCandidate) -> String20     pub fn candidate(this: &RtcIceCandidate) -> String;
21     # [wasm_bindgen (structural , method , setter , js_class = "RTCIceCandidate" , js_name = candidate)]
22     #[doc = "Setter for the `candidate` field of this object."]
23     #[doc = ""]
24     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCIceCandidate/candidate)"]
25     #[doc = ""]
26     #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidate`*"]
set_candidate(this: &RtcIceCandidate, value: &str)27     pub fn set_candidate(this: &RtcIceCandidate, value: &str);
28     # [wasm_bindgen (structural , method , getter , js_class = "RTCIceCandidate" , js_name = sdpMid)]
29     #[doc = "Getter for the `sdpMid` field of this object."]
30     #[doc = ""]
31     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCIceCandidate/sdpMid)"]
32     #[doc = ""]
33     #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidate`*"]
sdp_mid(this: &RtcIceCandidate) -> Option<String>34     pub fn sdp_mid(this: &RtcIceCandidate) -> Option<String>;
35     # [wasm_bindgen (structural , method , setter , js_class = "RTCIceCandidate" , js_name = sdpMid)]
36     #[doc = "Setter for the `sdpMid` field of this object."]
37     #[doc = ""]
38     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCIceCandidate/sdpMid)"]
39     #[doc = ""]
40     #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidate`*"]
set_sdp_mid(this: &RtcIceCandidate, value: Option<&str>)41     pub fn set_sdp_mid(this: &RtcIceCandidate, value: Option<&str>);
42     # [wasm_bindgen (structural , method , getter , js_class = "RTCIceCandidate" , js_name = sdpMLineIndex)]
43     #[doc = "Getter for the `sdpMLineIndex` field of this object."]
44     #[doc = ""]
45     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCIceCandidate/sdpMLineIndex)"]
46     #[doc = ""]
47     #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidate`*"]
sdp_m_line_index(this: &RtcIceCandidate) -> Option<u16>48     pub fn sdp_m_line_index(this: &RtcIceCandidate) -> Option<u16>;
49     # [wasm_bindgen (structural , method , setter , js_class = "RTCIceCandidate" , js_name = sdpMLineIndex)]
50     #[doc = "Setter for the `sdpMLineIndex` field of this object."]
51     #[doc = ""]
52     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCIceCandidate/sdpMLineIndex)"]
53     #[doc = ""]
54     #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidate`*"]
set_sdp_m_line_index(this: &RtcIceCandidate, value: Option<u16>)55     pub fn set_sdp_m_line_index(this: &RtcIceCandidate, value: Option<u16>);
56     #[cfg(feature = "RtcIceCandidateInit")]
57     #[wasm_bindgen(catch, constructor, js_class = "RTCIceCandidate")]
58     #[doc = "The `new RtcIceCandidate(..)` constructor, creating a new instance of `RtcIceCandidate`."]
59     #[doc = ""]
60     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCIceCandidate/RTCIceCandidate)"]
61     #[doc = ""]
62     #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidate`, `RtcIceCandidateInit`*"]
new(candidate_init_dict: &RtcIceCandidateInit) -> Result<RtcIceCandidate, JsValue>63     pub fn new(candidate_init_dict: &RtcIceCandidateInit) -> Result<RtcIceCandidate, JsValue>;
64     # [wasm_bindgen (method , structural , js_class = "RTCIceCandidate" , js_name = toJSON)]
65     #[doc = "The `toJSON()` method."]
66     #[doc = ""]
67     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCIceCandidate/toJSON)"]
68     #[doc = ""]
69     #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidate`*"]
to_json(this: &RtcIceCandidate) -> ::js_sys::Object70     pub fn to_json(this: &RtcIceCandidate) -> ::js_sys::Object;
71 }
72