web_sys/features/
gen_PerformanceObserverEntryList.rs1#![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 = "PerformanceObserverEntryList",
10 typescript_type = "PerformanceObserverEntryList"
11 )]
12 #[derive(Debug, Clone, PartialEq, Eq)]
13 #[doc = "The `PerformanceObserverEntryList` class."]
14 #[doc = ""]
15 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceObserverEntryList)"]
16 #[doc = ""]
17 #[doc = "*This API requires the following crate features to be activated: `PerformanceObserverEntryList`*"]
18 pub type PerformanceObserverEntryList;
19 #[wasm_bindgen(
20 method,
21 js_class = "PerformanceObserverEntryList",
22 js_name = "getEntries"
23 )]
24 #[doc = "The `getEntries()` method."]
25 #[doc = ""]
26 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceObserverEntryList/getEntries)"]
27 #[doc = ""]
28 #[doc = "*This API requires the following crate features to be activated: `PerformanceObserverEntryList`*"]
29 pub fn get_entries(this: &PerformanceObserverEntryList) -> ::js_sys::Array;
30 #[cfg(feature = "PerformanceEntryFilterOptions")]
31 #[wasm_bindgen(
32 method,
33 js_class = "PerformanceObserverEntryList",
34 js_name = "getEntries"
35 )]
36 #[doc = "The `getEntries()` method."]
37 #[doc = ""]
38 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceObserverEntryList/getEntries)"]
39 #[doc = ""]
40 #[doc = "*This API requires the following crate features to be activated: `PerformanceEntryFilterOptions`, `PerformanceObserverEntryList`*"]
41 pub fn get_entries_with_filter(
42 this: &PerformanceObserverEntryList,
43 filter: &PerformanceEntryFilterOptions,
44 ) -> ::js_sys::Array;
45 #[wasm_bindgen(
46 method,
47 js_class = "PerformanceObserverEntryList",
48 js_name = "getEntriesByName"
49 )]
50 #[doc = "The `getEntriesByName()` method."]
51 #[doc = ""]
52 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceObserverEntryList/getEntriesByName)"]
53 #[doc = ""]
54 #[doc = "*This API requires the following crate features to be activated: `PerformanceObserverEntryList`*"]
55 pub fn get_entries_by_name(this: &PerformanceObserverEntryList, name: &str) -> ::js_sys::Array;
56 #[wasm_bindgen(
57 method,
58 js_class = "PerformanceObserverEntryList",
59 js_name = "getEntriesByName"
60 )]
61 #[doc = "The `getEntriesByName()` method."]
62 #[doc = ""]
63 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceObserverEntryList/getEntriesByName)"]
64 #[doc = ""]
65 #[doc = "*This API requires the following crate features to be activated: `PerformanceObserverEntryList`*"]
66 pub fn get_entries_by_name_with_entry_type(
67 this: &PerformanceObserverEntryList,
68 name: &str,
69 entry_type: &str,
70 ) -> ::js_sys::Array;
71 #[wasm_bindgen(
72 method,
73 js_class = "PerformanceObserverEntryList",
74 js_name = "getEntriesByType"
75 )]
76 #[doc = "The `getEntriesByType()` method."]
77 #[doc = ""]
78 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceObserverEntryList/getEntriesByType)"]
79 #[doc = ""]
80 #[doc = "*This API requires the following crate features to be activated: `PerformanceObserverEntryList`*"]
81 pub fn get_entries_by_type(
82 this: &PerformanceObserverEntryList,
83 entry_type: &str,
84 ) -> ::js_sys::Array;
85}