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