web_sys/features/
gen_PerformanceObserverEntryList.rs

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 = PerformanceObserverEntryList , typescript_type = "PerformanceObserverEntryList")]
8    #[derive(Debug, Clone, PartialEq, Eq)]
9    #[doc = "The `PerformanceObserverEntryList` class."]
10    #[doc = ""]
11    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceObserverEntryList)"]
12    #[doc = ""]
13    #[doc = "*This API requires the following crate features to be activated: `PerformanceObserverEntryList`*"]
14    pub type PerformanceObserverEntryList;
15    # [wasm_bindgen (method , structural , js_class = "PerformanceObserverEntryList" , js_name = getEntries)]
16    #[doc = "The `getEntries()` method."]
17    #[doc = ""]
18    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceObserverEntryList/getEntries)"]
19    #[doc = ""]
20    #[doc = "*This API requires the following crate features to be activated: `PerformanceObserverEntryList`*"]
21    pub fn get_entries(this: &PerformanceObserverEntryList) -> ::js_sys::Array;
22    #[cfg(feature = "PerformanceEntryFilterOptions")]
23    # [wasm_bindgen (method , structural , js_class = "PerformanceObserverEntryList" , js_name = getEntries)]
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: `PerformanceEntryFilterOptions`, `PerformanceObserverEntryList`*"]
29    pub fn get_entries_with_filter(
30        this: &PerformanceObserverEntryList,
31        filter: &PerformanceEntryFilterOptions,
32    ) -> ::js_sys::Array;
33    # [wasm_bindgen (method , structural , js_class = "PerformanceObserverEntryList" , js_name = getEntriesByName)]
34    #[doc = "The `getEntriesByName()` method."]
35    #[doc = ""]
36    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceObserverEntryList/getEntriesByName)"]
37    #[doc = ""]
38    #[doc = "*This API requires the following crate features to be activated: `PerformanceObserverEntryList`*"]
39    pub fn get_entries_by_name(this: &PerformanceObserverEntryList, name: &str) -> ::js_sys::Array;
40    # [wasm_bindgen (method , structural , js_class = "PerformanceObserverEntryList" , js_name = getEntriesByName)]
41    #[doc = "The `getEntriesByName()` method."]
42    #[doc = ""]
43    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceObserverEntryList/getEntriesByName)"]
44    #[doc = ""]
45    #[doc = "*This API requires the following crate features to be activated: `PerformanceObserverEntryList`*"]
46    pub fn get_entries_by_name_with_entry_type(
47        this: &PerformanceObserverEntryList,
48        name: &str,
49        entry_type: &str,
50    ) -> ::js_sys::Array;
51    # [wasm_bindgen (method , structural , js_class = "PerformanceObserverEntryList" , js_name = getEntriesByType)]
52    #[doc = "The `getEntriesByType()` method."]
53    #[doc = ""]
54    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceObserverEntryList/getEntriesByType)"]
55    #[doc = ""]
56    #[doc = "*This API requires the following crate features to be activated: `PerformanceObserverEntryList`*"]
57    pub fn get_entries_by_type(
58        this: &PerformanceObserverEntryList,
59        entry_type: &str,
60    ) -> ::js_sys::Array;
61}