Skip to main content

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(
8        extends = "PerformanceResourceTiming",
9        extends = "PerformanceEntry",
10        extends = "::js_sys::Object",
11        js_name = "PerformanceNavigationTiming",
12        typescript_type = "PerformanceNavigationTiming"
13    )]
14    #[derive(Debug, Clone, PartialEq, Eq)]
15    #[doc = "The `PerformanceNavigationTiming` class."]
16    #[doc = ""]
17    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceNavigationTiming)"]
18    #[doc = ""]
19    #[doc = "*This API requires the following crate features to be activated: `PerformanceNavigationTiming`*"]
20    pub type PerformanceNavigationTiming;
21    #[wasm_bindgen(
22        method,
23        getter,
24        js_class = "PerformanceNavigationTiming",
25        js_name = "unloadEventStart"
26    )]
27    #[doc = "Getter for the `unloadEventStart` field of this object."]
28    #[doc = ""]
29    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceNavigationTiming/unloadEventStart)"]
30    #[doc = ""]
31    #[doc = "*This API requires the following crate features to be activated: `PerformanceNavigationTiming`*"]
32    pub fn unload_event_start(this: &PerformanceNavigationTiming) -> f64;
33    #[wasm_bindgen(
34        method,
35        getter,
36        js_class = "PerformanceNavigationTiming",
37        js_name = "unloadEventEnd"
38    )]
39    #[doc = "Getter for the `unloadEventEnd` field of this object."]
40    #[doc = ""]
41    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceNavigationTiming/unloadEventEnd)"]
42    #[doc = ""]
43    #[doc = "*This API requires the following crate features to be activated: `PerformanceNavigationTiming`*"]
44    pub fn unload_event_end(this: &PerformanceNavigationTiming) -> f64;
45    #[wasm_bindgen(
46        method,
47        getter,
48        js_class = "PerformanceNavigationTiming",
49        js_name = "domInteractive"
50    )]
51    #[doc = "Getter for the `domInteractive` field of this object."]
52    #[doc = ""]
53    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceNavigationTiming/domInteractive)"]
54    #[doc = ""]
55    #[doc = "*This API requires the following crate features to be activated: `PerformanceNavigationTiming`*"]
56    pub fn dom_interactive(this: &PerformanceNavigationTiming) -> f64;
57    #[wasm_bindgen(
58        method,
59        getter,
60        js_class = "PerformanceNavigationTiming",
61        js_name = "domContentLoadedEventStart"
62    )]
63    #[doc = "Getter for the `domContentLoadedEventStart` field of this object."]
64    #[doc = ""]
65    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceNavigationTiming/domContentLoadedEventStart)"]
66    #[doc = ""]
67    #[doc = "*This API requires the following crate features to be activated: `PerformanceNavigationTiming`*"]
68    pub fn dom_content_loaded_event_start(this: &PerformanceNavigationTiming) -> f64;
69    #[wasm_bindgen(
70        method,
71        getter,
72        js_class = "PerformanceNavigationTiming",
73        js_name = "domContentLoadedEventEnd"
74    )]
75    #[doc = "Getter for the `domContentLoadedEventEnd` field of this object."]
76    #[doc = ""]
77    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceNavigationTiming/domContentLoadedEventEnd)"]
78    #[doc = ""]
79    #[doc = "*This API requires the following crate features to be activated: `PerformanceNavigationTiming`*"]
80    pub fn dom_content_loaded_event_end(this: &PerformanceNavigationTiming) -> f64;
81    #[wasm_bindgen(
82        method,
83        getter,
84        js_class = "PerformanceNavigationTiming",
85        js_name = "domComplete"
86    )]
87    #[doc = "Getter for the `domComplete` field of this object."]
88    #[doc = ""]
89    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceNavigationTiming/domComplete)"]
90    #[doc = ""]
91    #[doc = "*This API requires the following crate features to be activated: `PerformanceNavigationTiming`*"]
92    pub fn dom_complete(this: &PerformanceNavigationTiming) -> f64;
93    #[wasm_bindgen(
94        method,
95        getter,
96        js_class = "PerformanceNavigationTiming",
97        js_name = "loadEventStart"
98    )]
99    #[doc = "Getter for the `loadEventStart` field of this object."]
100    #[doc = ""]
101    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceNavigationTiming/loadEventStart)"]
102    #[doc = ""]
103    #[doc = "*This API requires the following crate features to be activated: `PerformanceNavigationTiming`*"]
104    pub fn load_event_start(this: &PerformanceNavigationTiming) -> f64;
105    #[wasm_bindgen(
106        method,
107        getter,
108        js_class = "PerformanceNavigationTiming",
109        js_name = "loadEventEnd"
110    )]
111    #[doc = "Getter for the `loadEventEnd` field of this object."]
112    #[doc = ""]
113    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceNavigationTiming/loadEventEnd)"]
114    #[doc = ""]
115    #[doc = "*This API requires the following crate features to be activated: `PerformanceNavigationTiming`*"]
116    pub fn load_event_end(this: &PerformanceNavigationTiming) -> f64;
117    #[cfg(feature = "NavigationType")]
118    #[wasm_bindgen(
119        method,
120        getter,
121        js_class = "PerformanceNavigationTiming",
122        js_name = "type"
123    )]
124    #[doc = "Getter for the `type` field of this object."]
125    #[doc = ""]
126    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceNavigationTiming/type)"]
127    #[doc = ""]
128    #[doc = "*This API requires the following crate features to be activated: `NavigationType`, `PerformanceNavigationTiming`*"]
129    pub fn type_(this: &PerformanceNavigationTiming) -> NavigationType;
130    #[wasm_bindgen(
131        method,
132        getter,
133        js_class = "PerformanceNavigationTiming",
134        js_name = "redirectCount"
135    )]
136    #[doc = "Getter for the `redirectCount` field of this object."]
137    #[doc = ""]
138    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceNavigationTiming/redirectCount)"]
139    #[doc = ""]
140    #[doc = "*This API requires the following crate features to be activated: `PerformanceNavigationTiming`*"]
141    pub fn redirect_count(this: &PerformanceNavigationTiming) -> u16;
142    #[wasm_bindgen(method, js_class = "PerformanceNavigationTiming", js_name = "toJSON")]
143    #[doc = "The `toJSON()` method."]
144    #[doc = ""]
145    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceNavigationTiming/toJSON)"]
146    #[doc = ""]
147    #[doc = "*This API requires the following crate features to be activated: `PerformanceNavigationTiming`*"]
148    pub fn to_json(this: &PerformanceNavigationTiming) -> ::js_sys::Object;
149}