Skip to main content

web_sys/features/
gen_RtcStatsReport.rs

1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[wasm_bindgen]
6extern "C" {
7    #[wasm_bindgen(
8        extends = "::js_sys::Object",
9        js_name = "RTCStatsReport",
10        typescript_type = "RTCStatsReport"
11    )]
12    #[derive(Debug, Clone, PartialEq, Eq)]
13    #[doc = "The `RtcStatsReport` class."]
14    #[doc = ""]
15    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCStatsReport)"]
16    #[doc = ""]
17    #[doc = "*This API requires the following crate features to be activated: `RtcStatsReport`*"]
18    pub type RtcStatsReport;
19    #[wasm_bindgen(method, getter, js_class = "RTCStatsReport", js_name = "size")]
20    #[doc = "Getter for the `size` field of this object."]
21    #[doc = ""]
22    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCStatsReport/size)"]
23    #[doc = ""]
24    #[doc = "*This API requires the following crate features to be activated: `RtcStatsReport`*"]
25    pub fn size(this: &RtcStatsReport) -> u32;
26    #[wasm_bindgen(catch, method, js_class = "RTCStatsReport", js_name = "forEach")]
27    #[doc = "The `forEach()` method."]
28    #[doc = ""]
29    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCStatsReport/forEach)"]
30    #[doc = ""]
31    #[doc = "*This API requires the following crate features to be activated: `RtcStatsReport`*"]
32    pub fn for_each(this: &RtcStatsReport, callback: &::js_sys::Function) -> Result<(), JsValue>;
33    #[wasm_bindgen(method, js_class = "RTCStatsReport")]
34    #[doc = "The `get()` method."]
35    #[doc = ""]
36    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCStatsReport/get)"]
37    #[doc = ""]
38    #[doc = "*This API requires the following crate features to be activated: `RtcStatsReport`*"]
39    pub fn get(this: &RtcStatsReport, key: &str) -> Option<::js_sys::Object>;
40    #[wasm_bindgen(method, js_class = "RTCStatsReport")]
41    #[doc = "The `has()` method."]
42    #[doc = ""]
43    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCStatsReport/has)"]
44    #[doc = ""]
45    #[doc = "*This API requires the following crate features to be activated: `RtcStatsReport`*"]
46    pub fn has(this: &RtcStatsReport, key: &str) -> bool;
47    #[wasm_bindgen(method, js_class = "RTCStatsReport")]
48    #[doc = "The `entries()` method."]
49    #[doc = ""]
50    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCStatsReport/entries)"]
51    #[doc = ""]
52    #[doc = "*This API requires the following crate features to be activated: `RtcStatsReport`*"]
53    pub fn entries(this: &RtcStatsReport) -> ::js_sys::Iterator;
54    #[wasm_bindgen(method, js_class = "RTCStatsReport")]
55    #[doc = "The `keys()` method."]
56    #[doc = ""]
57    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCStatsReport/keys)"]
58    #[doc = ""]
59    #[doc = "*This API requires the following crate features to be activated: `RtcStatsReport`*"]
60    pub fn keys(this: &RtcStatsReport) -> ::js_sys::Iterator;
61    #[wasm_bindgen(method, js_class = "RTCStatsReport")]
62    #[doc = "The `values()` method."]
63    #[doc = ""]
64    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCStatsReport/values)"]
65    #[doc = ""]
66    #[doc = "*This API requires the following crate features to be activated: `RtcStatsReport`*"]
67    pub fn values(this: &RtcStatsReport) -> ::js_sys::Iterator;
68}