web_sys/features/
gen_PerformanceNavigationTiming.rs

1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[wasm_bindgen]
6extern "C" {
7    # [wasm_bindgen (extends = PerformanceResourceTiming , extends = PerformanceEntry , extends = :: js_sys :: Object , js_name = PerformanceNavigationTiming , typescript_type = "PerformanceNavigationTiming")]
8    #[derive(Debug, Clone, PartialEq, Eq)]
9    #[doc = "The `PerformanceNavigationTiming` class."]
10    #[doc = ""]
11    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceNavigationTiming)"]
12    #[doc = ""]
13    #[doc = "*This API requires the following crate features to be activated: `PerformanceNavigationTiming`*"]
14    pub type PerformanceNavigationTiming;
15    # [wasm_bindgen (structural , method , getter , js_class = "PerformanceNavigationTiming" , js_name = unloadEventStart)]
16    #[doc = "Getter for the `unloadEventStart` field of this object."]
17    #[doc = ""]
18    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceNavigationTiming/unloadEventStart)"]
19    #[doc = ""]
20    #[doc = "*This API requires the following crate features to be activated: `PerformanceNavigationTiming`*"]
21    pub fn unload_event_start(this: &PerformanceNavigationTiming) -> f64;
22    # [wasm_bindgen (structural , method , getter , js_class = "PerformanceNavigationTiming" , js_name = unloadEventEnd)]
23    #[doc = "Getter for the `unloadEventEnd` field of this object."]
24    #[doc = ""]
25    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceNavigationTiming/unloadEventEnd)"]
26    #[doc = ""]
27    #[doc = "*This API requires the following crate features to be activated: `PerformanceNavigationTiming`*"]
28    pub fn unload_event_end(this: &PerformanceNavigationTiming) -> f64;
29    # [wasm_bindgen (structural , method , getter , js_class = "PerformanceNavigationTiming" , js_name = domInteractive)]
30    #[doc = "Getter for the `domInteractive` field of this object."]
31    #[doc = ""]
32    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceNavigationTiming/domInteractive)"]
33    #[doc = ""]
34    #[doc = "*This API requires the following crate features to be activated: `PerformanceNavigationTiming`*"]
35    pub fn dom_interactive(this: &PerformanceNavigationTiming) -> f64;
36    # [wasm_bindgen (structural , method , getter , js_class = "PerformanceNavigationTiming" , js_name = domContentLoadedEventStart)]
37    #[doc = "Getter for the `domContentLoadedEventStart` field of this object."]
38    #[doc = ""]
39    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceNavigationTiming/domContentLoadedEventStart)"]
40    #[doc = ""]
41    #[doc = "*This API requires the following crate features to be activated: `PerformanceNavigationTiming`*"]
42    pub fn dom_content_loaded_event_start(this: &PerformanceNavigationTiming) -> f64;
43    # [wasm_bindgen (structural , method , getter , js_class = "PerformanceNavigationTiming" , js_name = domContentLoadedEventEnd)]
44    #[doc = "Getter for the `domContentLoadedEventEnd` field of this object."]
45    #[doc = ""]
46    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceNavigationTiming/domContentLoadedEventEnd)"]
47    #[doc = ""]
48    #[doc = "*This API requires the following crate features to be activated: `PerformanceNavigationTiming`*"]
49    pub fn dom_content_loaded_event_end(this: &PerformanceNavigationTiming) -> f64;
50    # [wasm_bindgen (structural , method , getter , js_class = "PerformanceNavigationTiming" , js_name = domComplete)]
51    #[doc = "Getter for the `domComplete` field of this object."]
52    #[doc = ""]
53    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceNavigationTiming/domComplete)"]
54    #[doc = ""]
55    #[doc = "*This API requires the following crate features to be activated: `PerformanceNavigationTiming`*"]
56    pub fn dom_complete(this: &PerformanceNavigationTiming) -> f64;
57    # [wasm_bindgen (structural , method , getter , js_class = "PerformanceNavigationTiming" , js_name = loadEventStart)]
58    #[doc = "Getter for the `loadEventStart` field of this object."]
59    #[doc = ""]
60    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceNavigationTiming/loadEventStart)"]
61    #[doc = ""]
62    #[doc = "*This API requires the following crate features to be activated: `PerformanceNavigationTiming`*"]
63    pub fn load_event_start(this: &PerformanceNavigationTiming) -> f64;
64    # [wasm_bindgen (structural , method , getter , js_class = "PerformanceNavigationTiming" , js_name = loadEventEnd)]
65    #[doc = "Getter for the `loadEventEnd` field of this object."]
66    #[doc = ""]
67    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceNavigationTiming/loadEventEnd)"]
68    #[doc = ""]
69    #[doc = "*This API requires the following crate features to be activated: `PerformanceNavigationTiming`*"]
70    pub fn load_event_end(this: &PerformanceNavigationTiming) -> f64;
71    #[cfg(feature = "NavigationType")]
72    # [wasm_bindgen (structural , method , getter , js_class = "PerformanceNavigationTiming" , js_name = type)]
73    #[doc = "Getter for the `type` field of this object."]
74    #[doc = ""]
75    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceNavigationTiming/type)"]
76    #[doc = ""]
77    #[doc = "*This API requires the following crate features to be activated: `NavigationType`, `PerformanceNavigationTiming`*"]
78    pub fn type_(this: &PerformanceNavigationTiming) -> NavigationType;
79    # [wasm_bindgen (structural , method , getter , js_class = "PerformanceNavigationTiming" , js_name = redirectCount)]
80    #[doc = "Getter for the `redirectCount` field of this object."]
81    #[doc = ""]
82    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceNavigationTiming/redirectCount)"]
83    #[doc = ""]
84    #[doc = "*This API requires the following crate features to be activated: `PerformanceNavigationTiming`*"]
85    pub fn redirect_count(this: &PerformanceNavigationTiming) -> u16;
86    # [wasm_bindgen (method , structural , js_class = "PerformanceNavigationTiming" , js_name = toJSON)]
87    #[doc = "The `toJSON()` method."]
88    #[doc = ""]
89    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceNavigationTiming/toJSON)"]
90    #[doc = ""]
91    #[doc = "*This API requires the following crate features to be activated: `PerformanceNavigationTiming`*"]
92    pub fn to_json(this: &PerformanceNavigationTiming) -> ::js_sys::Object;
93}