From 9835e2ae736235810b4ea1c162ca5e65c547e770 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 18 May 2024 04:49:50 +0200 Subject: Merging upstream version 1.71.1+dfsg1. Signed-off-by: Daniel Baumann --- vendor/web-sys/src/features/gen_RtcIceCandidate.rs | 71 ++++++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 vendor/web-sys/src/features/gen_RtcIceCandidate.rs (limited to 'vendor/web-sys/src/features/gen_RtcIceCandidate.rs') diff --git a/vendor/web-sys/src/features/gen_RtcIceCandidate.rs b/vendor/web-sys/src/features/gen_RtcIceCandidate.rs new file mode 100644 index 000000000..ca7424e99 --- /dev/null +++ b/vendor/web-sys/src/features/gen_RtcIceCandidate.rs @@ -0,0 +1,71 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [wasm_bindgen (extends = :: js_sys :: Object , js_name = RTCIceCandidate , typescript_type = "RTCIceCandidate")] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `RtcIceCandidate` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCIceCandidate)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidate`*"] + pub type RtcIceCandidate; + # [wasm_bindgen (structural , method , getter , js_class = "RTCIceCandidate" , js_name = candidate)] + #[doc = "Getter for the `candidate` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCIceCandidate/candidate)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidate`*"] + pub fn candidate(this: &RtcIceCandidate) -> String; + # [wasm_bindgen (structural , method , setter , js_class = "RTCIceCandidate" , js_name = candidate)] + #[doc = "Setter for the `candidate` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCIceCandidate/candidate)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidate`*"] + pub fn set_candidate(this: &RtcIceCandidate, value: &str); + # [wasm_bindgen (structural , method , getter , js_class = "RTCIceCandidate" , js_name = sdpMid)] + #[doc = "Getter for the `sdpMid` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCIceCandidate/sdpMid)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidate`*"] + pub fn sdp_mid(this: &RtcIceCandidate) -> Option; + # [wasm_bindgen (structural , method , setter , js_class = "RTCIceCandidate" , js_name = sdpMid)] + #[doc = "Setter for the `sdpMid` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCIceCandidate/sdpMid)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidate`*"] + pub fn set_sdp_mid(this: &RtcIceCandidate, value: Option<&str>); + # [wasm_bindgen (structural , method , getter , js_class = "RTCIceCandidate" , js_name = sdpMLineIndex)] + #[doc = "Getter for the `sdpMLineIndex` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCIceCandidate/sdpMLineIndex)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidate`*"] + pub fn sdp_m_line_index(this: &RtcIceCandidate) -> Option; + # [wasm_bindgen (structural , method , setter , js_class = "RTCIceCandidate" , js_name = sdpMLineIndex)] + #[doc = "Setter for the `sdpMLineIndex` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCIceCandidate/sdpMLineIndex)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidate`*"] + pub fn set_sdp_m_line_index(this: &RtcIceCandidate, value: Option); + #[cfg(feature = "RtcIceCandidateInit")] + #[wasm_bindgen(catch, constructor, js_class = "RTCIceCandidate")] + #[doc = "The `new RtcIceCandidate(..)` constructor, creating a new instance of `RtcIceCandidate`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCIceCandidate/RTCIceCandidate)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidate`, `RtcIceCandidateInit`*"] + pub fn new(candidate_init_dict: &RtcIceCandidateInit) -> Result; + # [wasm_bindgen (method , structural , js_class = "RTCIceCandidate" , js_name = toJSON)] + #[doc = "The `toJSON()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCIceCandidate/toJSON)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidate`*"] + pub fn to_json(this: &RtcIceCandidate) -> ::js_sys::Object; +} -- cgit v1.2.3