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 (extends = Event , extends = :: js_sys :: Object , js_name = RTCPeerConnectionIceEvent , typescript_type = "RTCPeerConnectionIceEvent")]
8 #[derive(Debug, Clone, PartialEq, Eq)]
9 #[doc = "The `RtcPeerConnectionIceEvent` class."]
10 #[doc = ""]
11 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnectionIceEvent)"]
12 #[doc = ""]
13 #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnectionIceEvent`*"]
14 pub type RtcPeerConnectionIceEvent;
15 #[cfg(feature = "RtcIceCandidate")]
16 # [wasm_bindgen (structural , method , getter , js_class = "RTCPeerConnectionIceEvent" , js_name = candidate)]
17 #[doc = "Getter for the `candidate` field of this object."]
18 #[doc = ""]
19 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnectionIceEvent/candidate)"]
20 #[doc = ""]
21 #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidate`, `RtcPeerConnectionIceEvent`*"]
22 pub fn candidate(this: &RtcPeerConnectionIceEvent) -> Option<RtcIceCandidate>;
23 #[wasm_bindgen(catch, constructor, js_class = "RTCPeerConnectionIceEvent")]
24 #[doc = "The `new RtcPeerConnectionIceEvent(..)` constructor, creating a new instance of `RtcPeerConnectionIceEvent`."]
25 #[doc = ""]
26 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnectionIceEvent/RTCPeerConnectionIceEvent)"]
27 #[doc = ""]
28 #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnectionIceEvent`*"]
29 pub fn new(type_: &str) -> Result<RtcPeerConnectionIceEvent, JsValue>;
30 #[cfg(feature = "RtcPeerConnectionIceEventInit")]
31 #[wasm_bindgen(catch, constructor, js_class = "RTCPeerConnectionIceEvent")]
32 #[doc = "The `new RtcPeerConnectionIceEvent(..)` constructor, creating a new instance of `RtcPeerConnectionIceEvent`."]
33 #[doc = ""]
34 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnectionIceEvent/RTCPeerConnectionIceEvent)"]
35 #[doc = ""]
36 #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnectionIceEvent`, `RtcPeerConnectionIceEventInit`*"]
37 pub fn new_with_event_init_dict(
38 type_: &str,
39 event_init_dict: &RtcPeerConnectionIceEventInit,
40 ) -> Result<RtcPeerConnectionIceEvent, JsValue>;
41}