Skip to main content

web_sys/features/
gen_WebTransportStats.rs

1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[cfg(web_sys_unstable_apis)]
6#[wasm_bindgen]
7extern "C" {
8    # [wasm_bindgen (extends = :: js_sys :: Object , js_name = WebTransportStats)]
9    #[derive(Debug, Clone, PartialEq, Eq)]
10    #[doc = "The `WebTransportStats` dictionary."]
11    #[doc = ""]
12    #[doc = "*This API requires the following crate features to be activated: `WebTransportStats`*"]
13    #[doc = ""]
14    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
15    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
16    pub type WebTransportStats;
17    #[cfg(web_sys_unstable_apis)]
18    #[doc = "Get the `bytesReceived` field of this object."]
19    #[doc = ""]
20    #[doc = "*This API requires the following crate features to be activated: `WebTransportStats`*"]
21    #[doc = ""]
22    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
23    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
24    #[wasm_bindgen(method, getter = "bytesReceived")]
25    pub fn get_bytes_received(this: &WebTransportStats) -> Option<f64>;
26    #[cfg(web_sys_unstable_apis)]
27    #[doc = "Change the `bytesReceived` field of this object."]
28    #[doc = ""]
29    #[doc = "*This API requires the following crate features to be activated: `WebTransportStats`*"]
30    #[doc = ""]
31    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
32    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
33    #[wasm_bindgen(method, setter = "bytesReceived")]
34    pub fn set_bytes_received(this: &WebTransportStats, val: u32);
35    #[cfg(web_sys_unstable_apis)]
36    #[doc = "Change the `bytesReceived` field of this object."]
37    #[doc = ""]
38    #[doc = "*This API requires the following crate features to be activated: `WebTransportStats`*"]
39    #[doc = ""]
40    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
41    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
42    #[wasm_bindgen(method, setter = "bytesReceived")]
43    pub fn set_bytes_received_f64(this: &WebTransportStats, val: f64);
44    #[cfg(web_sys_unstable_apis)]
45    #[doc = "Get the `bytesSent` field of this object."]
46    #[doc = ""]
47    #[doc = "*This API requires the following crate features to be activated: `WebTransportStats`*"]
48    #[doc = ""]
49    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
50    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
51    #[wasm_bindgen(method, getter = "bytesSent")]
52    pub fn get_bytes_sent(this: &WebTransportStats) -> Option<f64>;
53    #[cfg(web_sys_unstable_apis)]
54    #[doc = "Change the `bytesSent` field of this object."]
55    #[doc = ""]
56    #[doc = "*This API requires the following crate features to be activated: `WebTransportStats`*"]
57    #[doc = ""]
58    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
59    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
60    #[wasm_bindgen(method, setter = "bytesSent")]
61    pub fn set_bytes_sent(this: &WebTransportStats, val: u32);
62    #[cfg(web_sys_unstable_apis)]
63    #[doc = "Change the `bytesSent` field of this object."]
64    #[doc = ""]
65    #[doc = "*This API requires the following crate features to be activated: `WebTransportStats`*"]
66    #[doc = ""]
67    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
68    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
69    #[wasm_bindgen(method, setter = "bytesSent")]
70    pub fn set_bytes_sent_f64(this: &WebTransportStats, val: f64);
71    #[cfg(web_sys_unstable_apis)]
72    #[cfg(feature = "WebTransportDatagramStats")]
73    #[doc = "Get the `datagrams` field of this object."]
74    #[doc = ""]
75    #[doc = "*This API requires the following crate features to be activated: `WebTransportDatagramStats`, `WebTransportStats`*"]
76    #[doc = ""]
77    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
78    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
79    #[wasm_bindgen(method, getter = "datagrams")]
80    pub fn get_datagrams(this: &WebTransportStats) -> Option<WebTransportDatagramStats>;
81    #[cfg(web_sys_unstable_apis)]
82    #[cfg(feature = "WebTransportDatagramStats")]
83    #[doc = "Change the `datagrams` field of this object."]
84    #[doc = ""]
85    #[doc = "*This API requires the following crate features to be activated: `WebTransportDatagramStats`, `WebTransportStats`*"]
86    #[doc = ""]
87    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
88    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
89    #[wasm_bindgen(method, setter = "datagrams")]
90    pub fn set_datagrams(this: &WebTransportStats, val: &WebTransportDatagramStats);
91    #[cfg(web_sys_unstable_apis)]
92    #[doc = "Get the `minRtt` field of this object."]
93    #[doc = ""]
94    #[doc = "*This API requires the following crate features to be activated: `WebTransportStats`*"]
95    #[doc = ""]
96    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
97    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
98    #[wasm_bindgen(method, getter = "minRtt")]
99    pub fn get_min_rtt(this: &WebTransportStats) -> Option<f64>;
100    #[cfg(web_sys_unstable_apis)]
101    #[doc = "Change the `minRtt` field of this object."]
102    #[doc = ""]
103    #[doc = "*This API requires the following crate features to be activated: `WebTransportStats`*"]
104    #[doc = ""]
105    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
106    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
107    #[wasm_bindgen(method, setter = "minRtt")]
108    pub fn set_min_rtt(this: &WebTransportStats, val: f64);
109    #[cfg(web_sys_unstable_apis)]
110    #[doc = "Get the `numIncomingStreamsCreated` field of this object."]
111    #[doc = ""]
112    #[doc = "*This API requires the following crate features to be activated: `WebTransportStats`*"]
113    #[doc = ""]
114    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
115    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
116    #[wasm_bindgen(method, getter = "numIncomingStreamsCreated")]
117    pub fn get_num_incoming_streams_created(this: &WebTransportStats) -> Option<u32>;
118    #[cfg(web_sys_unstable_apis)]
119    #[doc = "Change the `numIncomingStreamsCreated` field of this object."]
120    #[doc = ""]
121    #[doc = "*This API requires the following crate features to be activated: `WebTransportStats`*"]
122    #[doc = ""]
123    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
124    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
125    #[wasm_bindgen(method, setter = "numIncomingStreamsCreated")]
126    pub fn set_num_incoming_streams_created(this: &WebTransportStats, val: u32);
127    #[cfg(web_sys_unstable_apis)]
128    #[doc = "Get the `numOutgoingStreamsCreated` field of this object."]
129    #[doc = ""]
130    #[doc = "*This API requires the following crate features to be activated: `WebTransportStats`*"]
131    #[doc = ""]
132    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
133    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
134    #[wasm_bindgen(method, getter = "numOutgoingStreamsCreated")]
135    pub fn get_num_outgoing_streams_created(this: &WebTransportStats) -> Option<u32>;
136    #[cfg(web_sys_unstable_apis)]
137    #[doc = "Change the `numOutgoingStreamsCreated` field of this object."]
138    #[doc = ""]
139    #[doc = "*This API requires the following crate features to be activated: `WebTransportStats`*"]
140    #[doc = ""]
141    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
142    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
143    #[wasm_bindgen(method, setter = "numOutgoingStreamsCreated")]
144    pub fn set_num_outgoing_streams_created(this: &WebTransportStats, val: u32);
145    #[cfg(web_sys_unstable_apis)]
146    #[doc = "Get the `packetsLost` field of this object."]
147    #[doc = ""]
148    #[doc = "*This API requires the following crate features to be activated: `WebTransportStats`*"]
149    #[doc = ""]
150    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
151    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
152    #[wasm_bindgen(method, getter = "packetsLost")]
153    pub fn get_packets_lost(this: &WebTransportStats) -> Option<f64>;
154    #[cfg(web_sys_unstable_apis)]
155    #[doc = "Change the `packetsLost` field of this object."]
156    #[doc = ""]
157    #[doc = "*This API requires the following crate features to be activated: `WebTransportStats`*"]
158    #[doc = ""]
159    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
160    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
161    #[wasm_bindgen(method, setter = "packetsLost")]
162    pub fn set_packets_lost(this: &WebTransportStats, val: u32);
163    #[cfg(web_sys_unstable_apis)]
164    #[doc = "Change the `packetsLost` field of this object."]
165    #[doc = ""]
166    #[doc = "*This API requires the following crate features to be activated: `WebTransportStats`*"]
167    #[doc = ""]
168    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
169    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
170    #[wasm_bindgen(method, setter = "packetsLost")]
171    pub fn set_packets_lost_f64(this: &WebTransportStats, val: f64);
172    #[cfg(web_sys_unstable_apis)]
173    #[doc = "Get the `packetsReceived` field of this object."]
174    #[doc = ""]
175    #[doc = "*This API requires the following crate features to be activated: `WebTransportStats`*"]
176    #[doc = ""]
177    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
178    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
179    #[wasm_bindgen(method, getter = "packetsReceived")]
180    pub fn get_packets_received(this: &WebTransportStats) -> Option<f64>;
181    #[cfg(web_sys_unstable_apis)]
182    #[doc = "Change the `packetsReceived` field of this object."]
183    #[doc = ""]
184    #[doc = "*This API requires the following crate features to be activated: `WebTransportStats`*"]
185    #[doc = ""]
186    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
187    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
188    #[wasm_bindgen(method, setter = "packetsReceived")]
189    pub fn set_packets_received(this: &WebTransportStats, val: u32);
190    #[cfg(web_sys_unstable_apis)]
191    #[doc = "Change the `packetsReceived` field of this object."]
192    #[doc = ""]
193    #[doc = "*This API requires the following crate features to be activated: `WebTransportStats`*"]
194    #[doc = ""]
195    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
196    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
197    #[wasm_bindgen(method, setter = "packetsReceived")]
198    pub fn set_packets_received_f64(this: &WebTransportStats, val: f64);
199    #[cfg(web_sys_unstable_apis)]
200    #[doc = "Get the `packetsSent` field of this object."]
201    #[doc = ""]
202    #[doc = "*This API requires the following crate features to be activated: `WebTransportStats`*"]
203    #[doc = ""]
204    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
205    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
206    #[wasm_bindgen(method, getter = "packetsSent")]
207    pub fn get_packets_sent(this: &WebTransportStats) -> Option<f64>;
208    #[cfg(web_sys_unstable_apis)]
209    #[doc = "Change the `packetsSent` field of this object."]
210    #[doc = ""]
211    #[doc = "*This API requires the following crate features to be activated: `WebTransportStats`*"]
212    #[doc = ""]
213    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
214    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
215    #[wasm_bindgen(method, setter = "packetsSent")]
216    pub fn set_packets_sent(this: &WebTransportStats, val: u32);
217    #[cfg(web_sys_unstable_apis)]
218    #[doc = "Change the `packetsSent` field of this object."]
219    #[doc = ""]
220    #[doc = "*This API requires the following crate features to be activated: `WebTransportStats`*"]
221    #[doc = ""]
222    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
223    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
224    #[wasm_bindgen(method, setter = "packetsSent")]
225    pub fn set_packets_sent_f64(this: &WebTransportStats, val: f64);
226    #[cfg(web_sys_unstable_apis)]
227    #[doc = "Get the `rttVariation` field of this object."]
228    #[doc = ""]
229    #[doc = "*This API requires the following crate features to be activated: `WebTransportStats`*"]
230    #[doc = ""]
231    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
232    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
233    #[wasm_bindgen(method, getter = "rttVariation")]
234    pub fn get_rtt_variation(this: &WebTransportStats) -> Option<f64>;
235    #[cfg(web_sys_unstable_apis)]
236    #[doc = "Change the `rttVariation` field of this object."]
237    #[doc = ""]
238    #[doc = "*This API requires the following crate features to be activated: `WebTransportStats`*"]
239    #[doc = ""]
240    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
241    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
242    #[wasm_bindgen(method, setter = "rttVariation")]
243    pub fn set_rtt_variation(this: &WebTransportStats, val: f64);
244    #[cfg(web_sys_unstable_apis)]
245    #[doc = "Get the `smoothedRtt` field of this object."]
246    #[doc = ""]
247    #[doc = "*This API requires the following crate features to be activated: `WebTransportStats`*"]
248    #[doc = ""]
249    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
250    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
251    #[wasm_bindgen(method, getter = "smoothedRtt")]
252    pub fn get_smoothed_rtt(this: &WebTransportStats) -> Option<f64>;
253    #[cfg(web_sys_unstable_apis)]
254    #[doc = "Change the `smoothedRtt` field of this object."]
255    #[doc = ""]
256    #[doc = "*This API requires the following crate features to be activated: `WebTransportStats`*"]
257    #[doc = ""]
258    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
259    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
260    #[wasm_bindgen(method, setter = "smoothedRtt")]
261    pub fn set_smoothed_rtt(this: &WebTransportStats, val: f64);
262    #[cfg(web_sys_unstable_apis)]
263    #[doc = "Get the `timestamp` field of this object."]
264    #[doc = ""]
265    #[doc = "*This API requires the following crate features to be activated: `WebTransportStats`*"]
266    #[doc = ""]
267    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
268    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
269    #[wasm_bindgen(method, getter = "timestamp")]
270    pub fn get_timestamp(this: &WebTransportStats) -> Option<f64>;
271    #[cfg(web_sys_unstable_apis)]
272    #[doc = "Change the `timestamp` field of this object."]
273    #[doc = ""]
274    #[doc = "*This API requires the following crate features to be activated: `WebTransportStats`*"]
275    #[doc = ""]
276    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
277    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
278    #[wasm_bindgen(method, setter = "timestamp")]
279    pub fn set_timestamp(this: &WebTransportStats, val: f64);
280}
281#[cfg(web_sys_unstable_apis)]
282impl WebTransportStats {
283    #[doc = "Construct a new `WebTransportStats`."]
284    #[doc = ""]
285    #[doc = "*This API requires the following crate features to be activated: `WebTransportStats`*"]
286    #[doc = ""]
287    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
288    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
289    pub fn new() -> Self {
290        #[allow(unused_mut)]
291        let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
292        ret
293    }
294    #[cfg(web_sys_unstable_apis)]
295    #[deprecated = "Use `set_bytes_received()` instead."]
296    pub fn bytes_received(&mut self, val: u32) -> &mut Self {
297        self.set_bytes_received(val);
298        self
299    }
300    #[cfg(web_sys_unstable_apis)]
301    #[deprecated = "Use `set_bytes_sent()` instead."]
302    pub fn bytes_sent(&mut self, val: u32) -> &mut Self {
303        self.set_bytes_sent(val);
304        self
305    }
306    #[cfg(web_sys_unstable_apis)]
307    #[cfg(feature = "WebTransportDatagramStats")]
308    #[deprecated = "Use `set_datagrams()` instead."]
309    pub fn datagrams(&mut self, val: &WebTransportDatagramStats) -> &mut Self {
310        self.set_datagrams(val);
311        self
312    }
313    #[cfg(web_sys_unstable_apis)]
314    #[deprecated = "Use `set_min_rtt()` instead."]
315    pub fn min_rtt(&mut self, val: f64) -> &mut Self {
316        self.set_min_rtt(val);
317        self
318    }
319    #[cfg(web_sys_unstable_apis)]
320    #[deprecated = "Use `set_num_incoming_streams_created()` instead."]
321    pub fn num_incoming_streams_created(&mut self, val: u32) -> &mut Self {
322        self.set_num_incoming_streams_created(val);
323        self
324    }
325    #[cfg(web_sys_unstable_apis)]
326    #[deprecated = "Use `set_num_outgoing_streams_created()` instead."]
327    pub fn num_outgoing_streams_created(&mut self, val: u32) -> &mut Self {
328        self.set_num_outgoing_streams_created(val);
329        self
330    }
331    #[cfg(web_sys_unstable_apis)]
332    #[deprecated = "Use `set_packets_lost()` instead."]
333    pub fn packets_lost(&mut self, val: u32) -> &mut Self {
334        self.set_packets_lost(val);
335        self
336    }
337    #[cfg(web_sys_unstable_apis)]
338    #[deprecated = "Use `set_packets_received()` instead."]
339    pub fn packets_received(&mut self, val: u32) -> &mut Self {
340        self.set_packets_received(val);
341        self
342    }
343    #[cfg(web_sys_unstable_apis)]
344    #[deprecated = "Use `set_packets_sent()` instead."]
345    pub fn packets_sent(&mut self, val: u32) -> &mut Self {
346        self.set_packets_sent(val);
347        self
348    }
349    #[cfg(web_sys_unstable_apis)]
350    #[deprecated = "Use `set_rtt_variation()` instead."]
351    pub fn rtt_variation(&mut self, val: f64) -> &mut Self {
352        self.set_rtt_variation(val);
353        self
354    }
355    #[cfg(web_sys_unstable_apis)]
356    #[deprecated = "Use `set_smoothed_rtt()` instead."]
357    pub fn smoothed_rtt(&mut self, val: f64) -> &mut Self {
358        self.set_smoothed_rtt(val);
359        self
360    }
361    #[cfg(web_sys_unstable_apis)]
362    #[deprecated = "Use `set_timestamp()` instead."]
363    pub fn timestamp(&mut self, val: f64) -> &mut Self {
364        self.set_timestamp(val);
365        self
366    }
367}
368#[cfg(web_sys_unstable_apis)]
369impl Default for WebTransportStats {
370    fn default() -> Self {
371        Self::new()
372    }
373}