web_sys/features/
gen_PerformanceObserver.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#![allow(unused_imports)]
#![allow(clippy::all)]
use super::*;
use wasm_bindgen::prelude::*;
#[wasm_bindgen]
extern "C" {
    # [wasm_bindgen (extends = :: js_sys :: Object , js_name = PerformanceObserver , typescript_type = "PerformanceObserver")]
    #[derive(Debug, Clone, PartialEq, Eq)]
    #[doc = "The `PerformanceObserver` class."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceObserver)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `PerformanceObserver`*"]
    pub type PerformanceObserver;
    #[wasm_bindgen(catch, constructor, js_class = "PerformanceObserver")]
    #[doc = "The `new PerformanceObserver(..)` constructor, creating a new instance of `PerformanceObserver`."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceObserver/PerformanceObserver)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `PerformanceObserver`*"]
    pub fn new(callback: &::js_sys::Function) -> Result<PerformanceObserver, JsValue>;
    # [wasm_bindgen (method , structural , js_class = "PerformanceObserver" , js_name = disconnect)]
    #[doc = "The `disconnect()` method."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceObserver/disconnect)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `PerformanceObserver`*"]
    pub fn disconnect(this: &PerformanceObserver);
    #[cfg(feature = "PerformanceObserverInit")]
    # [wasm_bindgen (method , structural , js_class = "PerformanceObserver" , js_name = observe)]
    #[doc = "The `observe()` method."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceObserver/observe)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `PerformanceObserver`, `PerformanceObserverInit`*"]
    pub fn observe(this: &PerformanceObserver, options: &PerformanceObserverInit);
    # [wasm_bindgen (method , structural , js_class = "PerformanceObserver" , js_name = takeRecords)]
    #[doc = "The `takeRecords()` method."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceObserver/takeRecords)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `PerformanceObserver`*"]
    pub fn take_records(this: &PerformanceObserver) -> ::js_sys::Array;
}