1 #![allow(unused_imports)]
2 use super::*;
3 use wasm_bindgen::prelude::*;
4 #[wasm_bindgen]
5 extern "C" {
6     # [wasm_bindgen (extends = :: js_sys :: Object , js_name = RTCStatsReportInternal)]
7     #[derive(Debug, Clone, PartialEq, Eq)]
8     #[doc = "The `RtcStatsReportInternal` dictionary."]
9     #[doc = ""]
10     #[doc = "*This API requires the following crate features to be activated: `RtcStatsReportInternal`*"]
11     pub type RtcStatsReportInternal;
12 }
13 impl RtcStatsReportInternal {
14     #[doc = "Construct a new `RtcStatsReportInternal`."]
15     #[doc = ""]
16     #[doc = "*This API requires the following crate features to be activated: `RtcStatsReportInternal`*"]
new() -> Self17     pub fn new() -> Self {
18         #[allow(unused_mut)]
19         let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
20         ret
21     }
22     #[doc = "Change the `closed` field of this object."]
23     #[doc = ""]
24     #[doc = "*This API requires the following crate features to be activated: `RtcStatsReportInternal`*"]
closed(&mut self, val: bool) -> &mut Self25     pub fn closed(&mut self, val: bool) -> &mut Self {
26         use wasm_bindgen::JsValue;
27         let r =
28             ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("closed"), &JsValue::from(val));
29         debug_assert!(
30             r.is_ok(),
31             "setting properties should never fail on our dictionary objects"
32         );
33         let _ = r;
34         self
35     }
36     #[doc = "Change the `codecStats` field of this object."]
37     #[doc = ""]
38     #[doc = "*This API requires the following crate features to be activated: `RtcStatsReportInternal`*"]
codec_stats(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self39     pub fn codec_stats(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self {
40         use wasm_bindgen::JsValue;
41         let r = ::js_sys::Reflect::set(
42             self.as_ref(),
43             &JsValue::from("codecStats"),
44             &JsValue::from(val),
45         );
46         debug_assert!(
47             r.is_ok(),
48             "setting properties should never fail on our dictionary objects"
49         );
50         let _ = r;
51         self
52     }
53     #[doc = "Change the `iceCandidatePairStats` field of this object."]
54     #[doc = ""]
55     #[doc = "*This API requires the following crate features to be activated: `RtcStatsReportInternal`*"]
ice_candidate_pair_stats(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self56     pub fn ice_candidate_pair_stats(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self {
57         use wasm_bindgen::JsValue;
58         let r = ::js_sys::Reflect::set(
59             self.as_ref(),
60             &JsValue::from("iceCandidatePairStats"),
61             &JsValue::from(val),
62         );
63         debug_assert!(
64             r.is_ok(),
65             "setting properties should never fail on our dictionary objects"
66         );
67         let _ = r;
68         self
69     }
70     #[doc = "Change the `iceCandidateStats` field of this object."]
71     #[doc = ""]
72     #[doc = "*This API requires the following crate features to be activated: `RtcStatsReportInternal`*"]
ice_candidate_stats(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self73     pub fn ice_candidate_stats(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self {
74         use wasm_bindgen::JsValue;
75         let r = ::js_sys::Reflect::set(
76             self.as_ref(),
77             &JsValue::from("iceCandidateStats"),
78             &JsValue::from(val),
79         );
80         debug_assert!(
81             r.is_ok(),
82             "setting properties should never fail on our dictionary objects"
83         );
84         let _ = r;
85         self
86     }
87     #[doc = "Change the `iceComponentStats` field of this object."]
88     #[doc = ""]
89     #[doc = "*This API requires the following crate features to be activated: `RtcStatsReportInternal`*"]
ice_component_stats(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self90     pub fn ice_component_stats(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self {
91         use wasm_bindgen::JsValue;
92         let r = ::js_sys::Reflect::set(
93             self.as_ref(),
94             &JsValue::from("iceComponentStats"),
95             &JsValue::from(val),
96         );
97         debug_assert!(
98             r.is_ok(),
99             "setting properties should never fail on our dictionary objects"
100         );
101         let _ = r;
102         self
103     }
104     #[doc = "Change the `iceRestarts` field of this object."]
105     #[doc = ""]
106     #[doc = "*This API requires the following crate features to be activated: `RtcStatsReportInternal`*"]
ice_restarts(&mut self, val: u32) -> &mut Self107     pub fn ice_restarts(&mut self, val: u32) -> &mut Self {
108         use wasm_bindgen::JsValue;
109         let r = ::js_sys::Reflect::set(
110             self.as_ref(),
111             &JsValue::from("iceRestarts"),
112             &JsValue::from(val),
113         );
114         debug_assert!(
115             r.is_ok(),
116             "setting properties should never fail on our dictionary objects"
117         );
118         let _ = r;
119         self
120     }
121     #[doc = "Change the `iceRollbacks` field of this object."]
122     #[doc = ""]
123     #[doc = "*This API requires the following crate features to be activated: `RtcStatsReportInternal`*"]
ice_rollbacks(&mut self, val: u32) -> &mut Self124     pub fn ice_rollbacks(&mut self, val: u32) -> &mut Self {
125         use wasm_bindgen::JsValue;
126         let r = ::js_sys::Reflect::set(
127             self.as_ref(),
128             &JsValue::from("iceRollbacks"),
129             &JsValue::from(val),
130         );
131         debug_assert!(
132             r.is_ok(),
133             "setting properties should never fail on our dictionary objects"
134         );
135         let _ = r;
136         self
137     }
138     #[doc = "Change the `inboundRTPStreamStats` field of this object."]
139     #[doc = ""]
140     #[doc = "*This API requires the following crate features to be activated: `RtcStatsReportInternal`*"]
inbound_rtp_stream_stats(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self141     pub fn inbound_rtp_stream_stats(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self {
142         use wasm_bindgen::JsValue;
143         let r = ::js_sys::Reflect::set(
144             self.as_ref(),
145             &JsValue::from("inboundRTPStreamStats"),
146             &JsValue::from(val),
147         );
148         debug_assert!(
149             r.is_ok(),
150             "setting properties should never fail on our dictionary objects"
151         );
152         let _ = r;
153         self
154     }
155     #[doc = "Change the `localSdp` field of this object."]
156     #[doc = ""]
157     #[doc = "*This API requires the following crate features to be activated: `RtcStatsReportInternal`*"]
local_sdp(&mut self, val: &str) -> &mut Self158     pub fn local_sdp(&mut self, val: &str) -> &mut Self {
159         use wasm_bindgen::JsValue;
160         let r = ::js_sys::Reflect::set(
161             self.as_ref(),
162             &JsValue::from("localSdp"),
163             &JsValue::from(val),
164         );
165         debug_assert!(
166             r.is_ok(),
167             "setting properties should never fail on our dictionary objects"
168         );
169         let _ = r;
170         self
171     }
172     #[doc = "Change the `mediaStreamStats` field of this object."]
173     #[doc = ""]
174     #[doc = "*This API requires the following crate features to be activated: `RtcStatsReportInternal`*"]
media_stream_stats(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self175     pub fn media_stream_stats(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self {
176         use wasm_bindgen::JsValue;
177         let r = ::js_sys::Reflect::set(
178             self.as_ref(),
179             &JsValue::from("mediaStreamStats"),
180             &JsValue::from(val),
181         );
182         debug_assert!(
183             r.is_ok(),
184             "setting properties should never fail on our dictionary objects"
185         );
186         let _ = r;
187         self
188     }
189     #[doc = "Change the `mediaStreamTrackStats` field of this object."]
190     #[doc = ""]
191     #[doc = "*This API requires the following crate features to be activated: `RtcStatsReportInternal`*"]
media_stream_track_stats(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self192     pub fn media_stream_track_stats(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self {
193         use wasm_bindgen::JsValue;
194         let r = ::js_sys::Reflect::set(
195             self.as_ref(),
196             &JsValue::from("mediaStreamTrackStats"),
197             &JsValue::from(val),
198         );
199         debug_assert!(
200             r.is_ok(),
201             "setting properties should never fail on our dictionary objects"
202         );
203         let _ = r;
204         self
205     }
206     #[doc = "Change the `offerer` field of this object."]
207     #[doc = ""]
208     #[doc = "*This API requires the following crate features to be activated: `RtcStatsReportInternal`*"]
offerer(&mut self, val: bool) -> &mut Self209     pub fn offerer(&mut self, val: bool) -> &mut Self {
210         use wasm_bindgen::JsValue;
211         let r = ::js_sys::Reflect::set(
212             self.as_ref(),
213             &JsValue::from("offerer"),
214             &JsValue::from(val),
215         );
216         debug_assert!(
217             r.is_ok(),
218             "setting properties should never fail on our dictionary objects"
219         );
220         let _ = r;
221         self
222     }
223     #[doc = "Change the `outboundRTPStreamStats` field of this object."]
224     #[doc = ""]
225     #[doc = "*This API requires the following crate features to be activated: `RtcStatsReportInternal`*"]
outbound_rtp_stream_stats(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self226     pub fn outbound_rtp_stream_stats(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self {
227         use wasm_bindgen::JsValue;
228         let r = ::js_sys::Reflect::set(
229             self.as_ref(),
230             &JsValue::from("outboundRTPStreamStats"),
231             &JsValue::from(val),
232         );
233         debug_assert!(
234             r.is_ok(),
235             "setting properties should never fail on our dictionary objects"
236         );
237         let _ = r;
238         self
239     }
240     #[doc = "Change the `pcid` field of this object."]
241     #[doc = ""]
242     #[doc = "*This API requires the following crate features to be activated: `RtcStatsReportInternal`*"]
pcid(&mut self, val: &str) -> &mut Self243     pub fn pcid(&mut self, val: &str) -> &mut Self {
244         use wasm_bindgen::JsValue;
245         let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("pcid"), &JsValue::from(val));
246         debug_assert!(
247             r.is_ok(),
248             "setting properties should never fail on our dictionary objects"
249         );
250         let _ = r;
251         self
252     }
253     #[doc = "Change the `rawLocalCandidates` field of this object."]
254     #[doc = ""]
255     #[doc = "*This API requires the following crate features to be activated: `RtcStatsReportInternal`*"]
raw_local_candidates(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self256     pub fn raw_local_candidates(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self {
257         use wasm_bindgen::JsValue;
258         let r = ::js_sys::Reflect::set(
259             self.as_ref(),
260             &JsValue::from("rawLocalCandidates"),
261             &JsValue::from(val),
262         );
263         debug_assert!(
264             r.is_ok(),
265             "setting properties should never fail on our dictionary objects"
266         );
267         let _ = r;
268         self
269     }
270     #[doc = "Change the `rawRemoteCandidates` field of this object."]
271     #[doc = ""]
272     #[doc = "*This API requires the following crate features to be activated: `RtcStatsReportInternal`*"]
raw_remote_candidates(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self273     pub fn raw_remote_candidates(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self {
274         use wasm_bindgen::JsValue;
275         let r = ::js_sys::Reflect::set(
276             self.as_ref(),
277             &JsValue::from("rawRemoteCandidates"),
278             &JsValue::from(val),
279         );
280         debug_assert!(
281             r.is_ok(),
282             "setting properties should never fail on our dictionary objects"
283         );
284         let _ = r;
285         self
286     }
287     #[doc = "Change the `remoteSdp` field of this object."]
288     #[doc = ""]
289     #[doc = "*This API requires the following crate features to be activated: `RtcStatsReportInternal`*"]
remote_sdp(&mut self, val: &str) -> &mut Self290     pub fn remote_sdp(&mut self, val: &str) -> &mut Self {
291         use wasm_bindgen::JsValue;
292         let r = ::js_sys::Reflect::set(
293             self.as_ref(),
294             &JsValue::from("remoteSdp"),
295             &JsValue::from(val),
296         );
297         debug_assert!(
298             r.is_ok(),
299             "setting properties should never fail on our dictionary objects"
300         );
301         let _ = r;
302         self
303     }
304     #[doc = "Change the `rtpContributingSourceStats` field of this object."]
305     #[doc = ""]
306     #[doc = "*This API requires the following crate features to be activated: `RtcStatsReportInternal`*"]
rtp_contributing_source_stats(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self307     pub fn rtp_contributing_source_stats(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self {
308         use wasm_bindgen::JsValue;
309         let r = ::js_sys::Reflect::set(
310             self.as_ref(),
311             &JsValue::from("rtpContributingSourceStats"),
312             &JsValue::from(val),
313         );
314         debug_assert!(
315             r.is_ok(),
316             "setting properties should never fail on our dictionary objects"
317         );
318         let _ = r;
319         self
320     }
321     #[doc = "Change the `timestamp` field of this object."]
322     #[doc = ""]
323     #[doc = "*This API requires the following crate features to be activated: `RtcStatsReportInternal`*"]
timestamp(&mut self, val: f64) -> &mut Self324     pub fn timestamp(&mut self, val: f64) -> &mut Self {
325         use wasm_bindgen::JsValue;
326         let r = ::js_sys::Reflect::set(
327             self.as_ref(),
328             &JsValue::from("timestamp"),
329             &JsValue::from(val),
330         );
331         debug_assert!(
332             r.is_ok(),
333             "setting properties should never fail on our dictionary objects"
334         );
335         let _ = r;
336         self
337     }
338     #[doc = "Change the `transportStats` field of this object."]
339     #[doc = ""]
340     #[doc = "*This API requires the following crate features to be activated: `RtcStatsReportInternal`*"]
transport_stats(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self341     pub fn transport_stats(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self {
342         use wasm_bindgen::JsValue;
343         let r = ::js_sys::Reflect::set(
344             self.as_ref(),
345             &JsValue::from("transportStats"),
346             &JsValue::from(val),
347         );
348         debug_assert!(
349             r.is_ok(),
350             "setting properties should never fail on our dictionary objects"
351         );
352         let _ = r;
353         self
354     }
355     #[doc = "Change the `trickledIceCandidateStats` field of this object."]
356     #[doc = ""]
357     #[doc = "*This API requires the following crate features to be activated: `RtcStatsReportInternal`*"]
trickled_ice_candidate_stats(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self358     pub fn trickled_ice_candidate_stats(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self {
359         use wasm_bindgen::JsValue;
360         let r = ::js_sys::Reflect::set(
361             self.as_ref(),
362             &JsValue::from("trickledIceCandidateStats"),
363             &JsValue::from(val),
364         );
365         debug_assert!(
366             r.is_ok(),
367             "setting properties should never fail on our dictionary objects"
368         );
369         let _ = r;
370         self
371     }
372 }
373