web_sys/features/
gen_RtcPeerConnectionIceEvent.rs1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[wasm_bindgen]
6extern "C" {
7 #[wasm_bindgen(
8 extends = "Event",
9 extends = "::js_sys::Object",
10 js_name = "RTCPeerConnectionIceEvent",
11 typescript_type = "RTCPeerConnectionIceEvent"
12 )]
13 #[derive(Debug, Clone, PartialEq, Eq)]
14 #[doc = "The `RtcPeerConnectionIceEvent` class."]
15 #[doc = ""]
16 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnectionIceEvent)"]
17 #[doc = ""]
18 #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnectionIceEvent`*"]
19 pub type RtcPeerConnectionIceEvent;
20 #[cfg(feature = "RtcIceCandidate")]
21 #[wasm_bindgen(
22 method,
23 getter,
24 js_class = "RTCPeerConnectionIceEvent",
25 js_name = "candidate"
26 )]
27 #[doc = "Getter for the `candidate` field of this object."]
28 #[doc = ""]
29 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnectionIceEvent/candidate)"]
30 #[doc = ""]
31 #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidate`, `RtcPeerConnectionIceEvent`*"]
32 pub fn candidate(this: &RtcPeerConnectionIceEvent) -> Option<RtcIceCandidate>;
33 #[wasm_bindgen(catch, constructor, js_class = "RTCPeerConnectionIceEvent")]
34 #[doc = "The `new RtcPeerConnectionIceEvent(..)` constructor, creating a new instance of `RtcPeerConnectionIceEvent`."]
35 #[doc = ""]
36 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnectionIceEvent/RTCPeerConnectionIceEvent)"]
37 #[doc = ""]
38 #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnectionIceEvent`*"]
39 pub fn new(type_: &str) -> Result<RtcPeerConnectionIceEvent, JsValue>;
40 #[cfg(feature = "RtcPeerConnectionIceEventInit")]
41 #[wasm_bindgen(catch, constructor, js_class = "RTCPeerConnectionIceEvent")]
42 #[doc = "The `new RtcPeerConnectionIceEvent(..)` constructor, creating a new instance of `RtcPeerConnectionIceEvent`."]
43 #[doc = ""]
44 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnectionIceEvent/RTCPeerConnectionIceEvent)"]
45 #[doc = ""]
46 #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnectionIceEvent`, `RtcPeerConnectionIceEventInit`*"]
47 pub fn new_with_event_init_dict(
48 type_: &str,
49 event_init_dict: &RtcPeerConnectionIceEventInit,
50 ) -> Result<RtcPeerConnectionIceEvent, JsValue>;
51}