1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[wasm_bindgen]
6extern "C" {
7 # [wasm_bindgen (extends = :: js_sys :: Object , js_name = RTCStatsReportInternal)]
8 #[derive(Debug, Clone, PartialEq, Eq)]
9 #[doc = "The `RtcStatsReportInternal` dictionary."]
10 #[doc = ""]
11 #[doc = "*This API requires the following crate features to be activated: `RtcStatsReportInternal`*"]
12 pub type RtcStatsReportInternal;
13 #[doc = "Get the `closed` field of this object."]
14 #[doc = ""]
15 #[doc = "*This API requires the following crate features to be activated: `RtcStatsReportInternal`*"]
16 #[wasm_bindgen(method, getter = "closed")]
17 pub fn get_closed(this: &RtcStatsReportInternal) -> Option<bool>;
18 #[doc = "Change the `closed` field of this object."]
19 #[doc = ""]
20 #[doc = "*This API requires the following crate features to be activated: `RtcStatsReportInternal`*"]
21 #[wasm_bindgen(method, setter = "closed")]
22 pub fn set_closed(this: &RtcStatsReportInternal, val: bool);
23 #[doc = "Get the `codecStats` field of this object."]
24 #[doc = ""]
25 #[doc = "*This API requires the following crate features to be activated: `RtcStatsReportInternal`*"]
26 #[wasm_bindgen(method, getter = "codecStats")]
27 pub fn get_codec_stats(this: &RtcStatsReportInternal) -> Option<::js_sys::Array>;
28 #[doc = "Change the `codecStats` field of this object."]
29 #[doc = ""]
30 #[doc = "*This API requires the following crate features to be activated: `RtcStatsReportInternal`*"]
31 #[wasm_bindgen(method, setter = "codecStats")]
32 pub fn set_codec_stats(this: &RtcStatsReportInternal, val: &::wasm_bindgen::JsValue);
33 #[doc = "Get the `iceCandidatePairStats` field of this object."]
34 #[doc = ""]
35 #[doc = "*This API requires the following crate features to be activated: `RtcStatsReportInternal`*"]
36 #[wasm_bindgen(method, getter = "iceCandidatePairStats")]
37 pub fn get_ice_candidate_pair_stats(this: &RtcStatsReportInternal) -> Option<::js_sys::Array>;
38 #[doc = "Change the `iceCandidatePairStats` field of this object."]
39 #[doc = ""]
40 #[doc = "*This API requires the following crate features to be activated: `RtcStatsReportInternal`*"]
41 #[wasm_bindgen(method, setter = "iceCandidatePairStats")]
42 pub fn set_ice_candidate_pair_stats(
43 this: &RtcStatsReportInternal,
44 val: &::wasm_bindgen::JsValue,
45 );
46 #[doc = "Get the `iceCandidateStats` field of this object."]
47 #[doc = ""]
48 #[doc = "*This API requires the following crate features to be activated: `RtcStatsReportInternal`*"]
49 #[wasm_bindgen(method, getter = "iceCandidateStats")]
50 pub fn get_ice_candidate_stats(this: &RtcStatsReportInternal) -> Option<::js_sys::Array>;
51 #[doc = "Change the `iceCandidateStats` field of this object."]
52 #[doc = ""]
53 #[doc = "*This API requires the following crate features to be activated: `RtcStatsReportInternal`*"]
54 #[wasm_bindgen(method, setter = "iceCandidateStats")]
55 pub fn set_ice_candidate_stats(this: &RtcStatsReportInternal, val: &::wasm_bindgen::JsValue);
56 #[doc = "Get the `iceComponentStats` field of this object."]
57 #[doc = ""]
58 #[doc = "*This API requires the following crate features to be activated: `RtcStatsReportInternal`*"]
59 #[wasm_bindgen(method, getter = "iceComponentStats")]
60 pub fn get_ice_component_stats(this: &RtcStatsReportInternal) -> Option<::js_sys::Array>;
61 #[doc = "Change the `iceComponentStats` field of this object."]
62 #[doc = ""]
63 #[doc = "*This API requires the following crate features to be activated: `RtcStatsReportInternal`*"]
64 #[wasm_bindgen(method, setter = "iceComponentStats")]
65 pub fn set_ice_component_stats(this: &RtcStatsReportInternal, val: &::wasm_bindgen::JsValue);
66 #[doc = "Get the `iceRestarts` field of this object."]
67 #[doc = ""]
68 #[doc = "*This API requires the following crate features to be activated: `RtcStatsReportInternal`*"]
69 #[wasm_bindgen(method, getter = "iceRestarts")]
70 pub fn get_ice_restarts(this: &RtcStatsReportInternal) -> Option<u32>;
71 #[doc = "Change the `iceRestarts` field of this object."]
72 #[doc = ""]
73 #[doc = "*This API requires the following crate features to be activated: `RtcStatsReportInternal`*"]
74 #[wasm_bindgen(method, setter = "iceRestarts")]
75 pub fn set_ice_restarts(this: &RtcStatsReportInternal, val: u32);
76 #[doc = "Get the `iceRollbacks` field of this object."]
77 #[doc = ""]
78 #[doc = "*This API requires the following crate features to be activated: `RtcStatsReportInternal`*"]
79 #[wasm_bindgen(method, getter = "iceRollbacks")]
80 pub fn get_ice_rollbacks(this: &RtcStatsReportInternal) -> Option<u32>;
81 #[doc = "Change the `iceRollbacks` field of this object."]
82 #[doc = ""]
83 #[doc = "*This API requires the following crate features to be activated: `RtcStatsReportInternal`*"]
84 #[wasm_bindgen(method, setter = "iceRollbacks")]
85 pub fn set_ice_rollbacks(this: &RtcStatsReportInternal, val: u32);
86 #[doc = "Get the `inboundRTPStreamStats` field of this object."]
87 #[doc = ""]
88 #[doc = "*This API requires the following crate features to be activated: `RtcStatsReportInternal`*"]
89 #[wasm_bindgen(method, getter = "inboundRTPStreamStats")]
90 pub fn get_inbound_rtp_stream_stats(this: &RtcStatsReportInternal) -> Option<::js_sys::Array>;
91 #[doc = "Change the `inboundRTPStreamStats` field of this object."]
92 #[doc = ""]
93 #[doc = "*This API requires the following crate features to be activated: `RtcStatsReportInternal`*"]
94 #[wasm_bindgen(method, setter = "inboundRTPStreamStats")]
95 pub fn set_inbound_rtp_stream_stats(
96 this: &RtcStatsReportInternal,
97 val: &::wasm_bindgen::JsValue,
98 );
99 #[doc = "Get the `localSdp` field of this object."]
100 #[doc = ""]
101 #[doc = "*This API requires the following crate features to be activated: `RtcStatsReportInternal`*"]
102 #[wasm_bindgen(method, getter = "localSdp")]
103 pub fn get_local_sdp(this: &RtcStatsReportInternal) -> Option<::alloc::string::String>;
104 #[doc = "Change the `localSdp` field of this object."]
105 #[doc = ""]
106 #[doc = "*This API requires the following crate features to be activated: `RtcStatsReportInternal`*"]
107 #[wasm_bindgen(method, setter = "localSdp")]
108 pub fn set_local_sdp(this: &RtcStatsReportInternal, val: &str);
109 #[doc = "Get the `mediaStreamStats` field of this object."]
110 #[doc = ""]
111 #[doc = "*This API requires the following crate features to be activated: `RtcStatsReportInternal`*"]
112 #[wasm_bindgen(method, getter = "mediaStreamStats")]
113 pub fn get_media_stream_stats(this: &RtcStatsReportInternal) -> Option<::js_sys::Array>;
114 #[doc = "Change the `mediaStreamStats` field of this object."]
115 #[doc = ""]
116 #[doc = "*This API requires the following crate features to be activated: `RtcStatsReportInternal`*"]
117 #[wasm_bindgen(method, setter = "mediaStreamStats")]
118 pub fn set_media_stream_stats(this: &RtcStatsReportInternal, val: &::wasm_bindgen::JsValue);
119 #[doc = "Get the `mediaStreamTrackStats` field of this object."]
120 #[doc = ""]
121 #[doc = "*This API requires the following crate features to be activated: `RtcStatsReportInternal`*"]
122 #[wasm_bindgen(method, getter = "mediaStreamTrackStats")]
123 pub fn get_media_stream_track_stats(this: &RtcStatsReportInternal) -> Option<::js_sys::Array>;
124 #[doc = "Change the `mediaStreamTrackStats` field of this object."]
125 #[doc = ""]
126 #[doc = "*This API requires the following crate features to be activated: `RtcStatsReportInternal`*"]
127 #[wasm_bindgen(method, setter = "mediaStreamTrackStats")]
128 pub fn set_media_stream_track_stats(
129 this: &RtcStatsReportInternal,
130 val: &::wasm_bindgen::JsValue,
131 );
132 #[doc = "Get the `offerer` field of this object."]
133 #[doc = ""]
134 #[doc = "*This API requires the following crate features to be activated: `RtcStatsReportInternal`*"]
135 #[wasm_bindgen(method, getter = "offerer")]
136 pub fn get_offerer(this: &RtcStatsReportInternal) -> Option<bool>;
137 #[doc = "Change the `offerer` field of this object."]
138 #[doc = ""]
139 #[doc = "*This API requires the following crate features to be activated: `RtcStatsReportInternal`*"]
140 #[wasm_bindgen(method, setter = "offerer")]
141 pub fn set_offerer(this: &RtcStatsReportInternal, val: bool);
142 #[doc = "Get the `outboundRTPStreamStats` field of this object."]
143 #[doc = ""]
144 #[doc = "*This API requires the following crate features to be activated: `RtcStatsReportInternal`*"]
145 #[wasm_bindgen(method, getter = "outboundRTPStreamStats")]
146 pub fn get_outbound_rtp_stream_stats(this: &RtcStatsReportInternal) -> Option<::js_sys::Array>;
147 #[doc = "Change the `outboundRTPStreamStats` field of this object."]
148 #[doc = ""]
149 #[doc = "*This API requires the following crate features to be activated: `RtcStatsReportInternal`*"]
150 #[wasm_bindgen(method, setter = "outboundRTPStreamStats")]
151 pub fn set_outbound_rtp_stream_stats(
152 this: &RtcStatsReportInternal,
153 val: &::wasm_bindgen::JsValue,
154 );
155 #[doc = "Get the `pcid` field of this object."]
156 #[doc = ""]
157 #[doc = "*This API requires the following crate features to be activated: `RtcStatsReportInternal`*"]
158 #[wasm_bindgen(method, getter = "pcid")]
159 pub fn get_pcid(this: &RtcStatsReportInternal) -> Option<::alloc::string::String>;
160 #[doc = "Change the `pcid` field of this object."]
161 #[doc = ""]
162 #[doc = "*This API requires the following crate features to be activated: `RtcStatsReportInternal`*"]
163 #[wasm_bindgen(method, setter = "pcid")]
164 pub fn set_pcid(this: &RtcStatsReportInternal, val: &str);
165 #[doc = "Get the `rawLocalCandidates` field of this object."]
166 #[doc = ""]
167 #[doc = "*This API requires the following crate features to be activated: `RtcStatsReportInternal`*"]
168 #[wasm_bindgen(method, getter = "rawLocalCandidates")]
169 pub fn get_raw_local_candidates(this: &RtcStatsReportInternal) -> Option<::js_sys::Array>;
170 #[doc = "Change the `rawLocalCandidates` field of this object."]
171 #[doc = ""]
172 #[doc = "*This API requires the following crate features to be activated: `RtcStatsReportInternal`*"]
173 #[wasm_bindgen(method, setter = "rawLocalCandidates")]
174 pub fn set_raw_local_candidates(this: &RtcStatsReportInternal, val: &::wasm_bindgen::JsValue);
175 #[doc = "Get the `rawRemoteCandidates` field of this object."]
176 #[doc = ""]
177 #[doc = "*This API requires the following crate features to be activated: `RtcStatsReportInternal`*"]
178 #[wasm_bindgen(method, getter = "rawRemoteCandidates")]
179 pub fn get_raw_remote_candidates(this: &RtcStatsReportInternal) -> Option<::js_sys::Array>;
180 #[doc = "Change the `rawRemoteCandidates` field of this object."]
181 #[doc = ""]
182 #[doc = "*This API requires the following crate features to be activated: `RtcStatsReportInternal`*"]
183 #[wasm_bindgen(method, setter = "rawRemoteCandidates")]
184 pub fn set_raw_remote_candidates(this: &RtcStatsReportInternal, val: &::wasm_bindgen::JsValue);
185 #[doc = "Get the `remoteSdp` field of this object."]
186 #[doc = ""]
187 #[doc = "*This API requires the following crate features to be activated: `RtcStatsReportInternal`*"]
188 #[wasm_bindgen(method, getter = "remoteSdp")]
189 pub fn get_remote_sdp(this: &RtcStatsReportInternal) -> Option<::alloc::string::String>;
190 #[doc = "Change the `remoteSdp` field of this object."]
191 #[doc = ""]
192 #[doc = "*This API requires the following crate features to be activated: `RtcStatsReportInternal`*"]
193 #[wasm_bindgen(method, setter = "remoteSdp")]
194 pub fn set_remote_sdp(this: &RtcStatsReportInternal, val: &str);
195 #[doc = "Get the `rtpContributingSourceStats` field of this object."]
196 #[doc = ""]
197 #[doc = "*This API requires the following crate features to be activated: `RtcStatsReportInternal`*"]
198 #[wasm_bindgen(method, getter = "rtpContributingSourceStats")]
199 pub fn get_rtp_contributing_source_stats(
200 this: &RtcStatsReportInternal,
201 ) -> Option<::js_sys::Array>;
202 #[doc = "Change the `rtpContributingSourceStats` field of this object."]
203 #[doc = ""]
204 #[doc = "*This API requires the following crate features to be activated: `RtcStatsReportInternal`*"]
205 #[wasm_bindgen(method, setter = "rtpContributingSourceStats")]
206 pub fn set_rtp_contributing_source_stats(
207 this: &RtcStatsReportInternal,
208 val: &::wasm_bindgen::JsValue,
209 );
210 #[doc = "Get the `timestamp` field of this object."]
211 #[doc = ""]
212 #[doc = "*This API requires the following crate features to be activated: `RtcStatsReportInternal`*"]
213 #[wasm_bindgen(method, getter = "timestamp")]
214 pub fn get_timestamp(this: &RtcStatsReportInternal) -> Option<f64>;
215 #[doc = "Change the `timestamp` field of this object."]
216 #[doc = ""]
217 #[doc = "*This API requires the following crate features to be activated: `RtcStatsReportInternal`*"]
218 #[wasm_bindgen(method, setter = "timestamp")]
219 pub fn set_timestamp(this: &RtcStatsReportInternal, val: f64);
220 #[doc = "Get the `transportStats` field of this object."]
221 #[doc = ""]
222 #[doc = "*This API requires the following crate features to be activated: `RtcStatsReportInternal`*"]
223 #[wasm_bindgen(method, getter = "transportStats")]
224 pub fn get_transport_stats(this: &RtcStatsReportInternal) -> Option<::js_sys::Array>;
225 #[doc = "Change the `transportStats` field of this object."]
226 #[doc = ""]
227 #[doc = "*This API requires the following crate features to be activated: `RtcStatsReportInternal`*"]
228 #[wasm_bindgen(method, setter = "transportStats")]
229 pub fn set_transport_stats(this: &RtcStatsReportInternal, val: &::wasm_bindgen::JsValue);
230 #[doc = "Get the `trickledIceCandidateStats` field of this object."]
231 #[doc = ""]
232 #[doc = "*This API requires the following crate features to be activated: `RtcStatsReportInternal`*"]
233 #[wasm_bindgen(method, getter = "trickledIceCandidateStats")]
234 pub fn get_trickled_ice_candidate_stats(
235 this: &RtcStatsReportInternal,
236 ) -> Option<::js_sys::Array>;
237 #[doc = "Change the `trickledIceCandidateStats` field of this object."]
238 #[doc = ""]
239 #[doc = "*This API requires the following crate features to be activated: `RtcStatsReportInternal`*"]
240 #[wasm_bindgen(method, setter = "trickledIceCandidateStats")]
241 pub fn set_trickled_ice_candidate_stats(
242 this: &RtcStatsReportInternal,
243 val: &::wasm_bindgen::JsValue,
244 );
245}
246impl RtcStatsReportInternal {
247 #[doc = "Construct a new `RtcStatsReportInternal`."]
248 #[doc = ""]
249 #[doc = "*This API requires the following crate features to be activated: `RtcStatsReportInternal`*"]
250 pub fn new() -> Self {
251 #[allow(unused_mut)]
252 let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
253 ret
254 }
255 #[deprecated = "Use `set_closed()` instead."]
256 pub fn closed(&mut self, val: bool) -> &mut Self {
257 self.set_closed(val);
258 self
259 }
260 #[deprecated = "Use `set_codec_stats()` instead."]
261 pub fn codec_stats(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self {
262 self.set_codec_stats(val);
263 self
264 }
265 #[deprecated = "Use `set_ice_candidate_pair_stats()` instead."]
266 pub fn ice_candidate_pair_stats(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self {
267 self.set_ice_candidate_pair_stats(val);
268 self
269 }
270 #[deprecated = "Use `set_ice_candidate_stats()` instead."]
271 pub fn ice_candidate_stats(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self {
272 self.set_ice_candidate_stats(val);
273 self
274 }
275 #[deprecated = "Use `set_ice_component_stats()` instead."]
276 pub fn ice_component_stats(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self {
277 self.set_ice_component_stats(val);
278 self
279 }
280 #[deprecated = "Use `set_ice_restarts()` instead."]
281 pub fn ice_restarts(&mut self, val: u32) -> &mut Self {
282 self.set_ice_restarts(val);
283 self
284 }
285 #[deprecated = "Use `set_ice_rollbacks()` instead."]
286 pub fn ice_rollbacks(&mut self, val: u32) -> &mut Self {
287 self.set_ice_rollbacks(val);
288 self
289 }
290 #[deprecated = "Use `set_inbound_rtp_stream_stats()` instead."]
291 pub fn inbound_rtp_stream_stats(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self {
292 self.set_inbound_rtp_stream_stats(val);
293 self
294 }
295 #[deprecated = "Use `set_local_sdp()` instead."]
296 pub fn local_sdp(&mut self, val: &str) -> &mut Self {
297 self.set_local_sdp(val);
298 self
299 }
300 #[deprecated = "Use `set_media_stream_stats()` instead."]
301 pub fn media_stream_stats(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self {
302 self.set_media_stream_stats(val);
303 self
304 }
305 #[deprecated = "Use `set_media_stream_track_stats()` instead."]
306 pub fn media_stream_track_stats(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self {
307 self.set_media_stream_track_stats(val);
308 self
309 }
310 #[deprecated = "Use `set_offerer()` instead."]
311 pub fn offerer(&mut self, val: bool) -> &mut Self {
312 self.set_offerer(val);
313 self
314 }
315 #[deprecated = "Use `set_outbound_rtp_stream_stats()` instead."]
316 pub fn outbound_rtp_stream_stats(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self {
317 self.set_outbound_rtp_stream_stats(val);
318 self
319 }
320 #[deprecated = "Use `set_pcid()` instead."]
321 pub fn pcid(&mut self, val: &str) -> &mut Self {
322 self.set_pcid(val);
323 self
324 }
325 #[deprecated = "Use `set_raw_local_candidates()` instead."]
326 pub fn raw_local_candidates(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self {
327 self.set_raw_local_candidates(val);
328 self
329 }
330 #[deprecated = "Use `set_raw_remote_candidates()` instead."]
331 pub fn raw_remote_candidates(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self {
332 self.set_raw_remote_candidates(val);
333 self
334 }
335 #[deprecated = "Use `set_remote_sdp()` instead."]
336 pub fn remote_sdp(&mut self, val: &str) -> &mut Self {
337 self.set_remote_sdp(val);
338 self
339 }
340 #[deprecated = "Use `set_rtp_contributing_source_stats()` instead."]
341 pub fn rtp_contributing_source_stats(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self {
342 self.set_rtp_contributing_source_stats(val);
343 self
344 }
345 #[deprecated = "Use `set_timestamp()` instead."]
346 pub fn timestamp(&mut self, val: f64) -> &mut Self {
347 self.set_timestamp(val);
348 self
349 }
350 #[deprecated = "Use `set_transport_stats()` instead."]
351 pub fn transport_stats(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self {
352 self.set_transport_stats(val);
353 self
354 }
355 #[deprecated = "Use `set_trickled_ice_candidate_stats()` instead."]
356 pub fn trickled_ice_candidate_stats(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self {
357 self.set_trickled_ice_candidate_stats(val);
358 self
359 }
360}
361impl Default for RtcStatsReportInternal {
362 fn default() -> Self {
363 Self::new()
364 }
365}