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