maxcountryman_web_sys/features/
gen_PerformanceNavigationTiming.rs

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