Skip to main content

web_sys/features/
gen_PerformanceTiming.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 = "::js_sys::Object",
9        js_name = "PerformanceTiming",
10        typescript_type = "PerformanceTiming"
11    )]
12    #[derive(Debug, Clone, PartialEq, Eq)]
13    #[doc = "The `PerformanceTiming` class."]
14    #[doc = ""]
15    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceTiming)"]
16    #[doc = ""]
17    #[doc = "*This API requires the following crate features to be activated: `PerformanceTiming`*"]
18    pub type PerformanceTiming;
19    #[wasm_bindgen(
20        method,
21        getter,
22        js_class = "PerformanceTiming",
23        js_name = "navigationStart"
24    )]
25    #[doc = "Getter for the `navigationStart` field of this object."]
26    #[doc = ""]
27    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceTiming/navigationStart)"]
28    #[doc = ""]
29    #[doc = "*This API requires the following crate features to be activated: `PerformanceTiming`*"]
30    pub fn navigation_start(this: &PerformanceTiming) -> f64;
31    #[wasm_bindgen(
32        method,
33        getter,
34        js_class = "PerformanceTiming",
35        js_name = "unloadEventStart"
36    )]
37    #[doc = "Getter for the `unloadEventStart` field of this object."]
38    #[doc = ""]
39    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceTiming/unloadEventStart)"]
40    #[doc = ""]
41    #[doc = "*This API requires the following crate features to be activated: `PerformanceTiming`*"]
42    pub fn unload_event_start(this: &PerformanceTiming) -> f64;
43    #[wasm_bindgen(
44        method,
45        getter,
46        js_class = "PerformanceTiming",
47        js_name = "unloadEventEnd"
48    )]
49    #[doc = "Getter for the `unloadEventEnd` field of this object."]
50    #[doc = ""]
51    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceTiming/unloadEventEnd)"]
52    #[doc = ""]
53    #[doc = "*This API requires the following crate features to be activated: `PerformanceTiming`*"]
54    pub fn unload_event_end(this: &PerformanceTiming) -> f64;
55    #[wasm_bindgen(
56        method,
57        getter,
58        js_class = "PerformanceTiming",
59        js_name = "redirectStart"
60    )]
61    #[doc = "Getter for the `redirectStart` field of this object."]
62    #[doc = ""]
63    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceTiming/redirectStart)"]
64    #[doc = ""]
65    #[doc = "*This API requires the following crate features to be activated: `PerformanceTiming`*"]
66    pub fn redirect_start(this: &PerformanceTiming) -> f64;
67    #[wasm_bindgen(
68        method,
69        getter,
70        js_class = "PerformanceTiming",
71        js_name = "redirectEnd"
72    )]
73    #[doc = "Getter for the `redirectEnd` field of this object."]
74    #[doc = ""]
75    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceTiming/redirectEnd)"]
76    #[doc = ""]
77    #[doc = "*This API requires the following crate features to be activated: `PerformanceTiming`*"]
78    pub fn redirect_end(this: &PerformanceTiming) -> f64;
79    #[wasm_bindgen(method, getter, js_class = "PerformanceTiming", js_name = "fetchStart")]
80    #[doc = "Getter for the `fetchStart` field of this object."]
81    #[doc = ""]
82    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceTiming/fetchStart)"]
83    #[doc = ""]
84    #[doc = "*This API requires the following crate features to be activated: `PerformanceTiming`*"]
85    pub fn fetch_start(this: &PerformanceTiming) -> f64;
86    #[wasm_bindgen(
87        method,
88        getter,
89        js_class = "PerformanceTiming",
90        js_name = "domainLookupStart"
91    )]
92    #[doc = "Getter for the `domainLookupStart` field of this object."]
93    #[doc = ""]
94    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceTiming/domainLookupStart)"]
95    #[doc = ""]
96    #[doc = "*This API requires the following crate features to be activated: `PerformanceTiming`*"]
97    pub fn domain_lookup_start(this: &PerformanceTiming) -> f64;
98    #[wasm_bindgen(
99        method,
100        getter,
101        js_class = "PerformanceTiming",
102        js_name = "domainLookupEnd"
103    )]
104    #[doc = "Getter for the `domainLookupEnd` field of this object."]
105    #[doc = ""]
106    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceTiming/domainLookupEnd)"]
107    #[doc = ""]
108    #[doc = "*This API requires the following crate features to be activated: `PerformanceTiming`*"]
109    pub fn domain_lookup_end(this: &PerformanceTiming) -> f64;
110    #[wasm_bindgen(
111        method,
112        getter,
113        js_class = "PerformanceTiming",
114        js_name = "connectStart"
115    )]
116    #[doc = "Getter for the `connectStart` field of this object."]
117    #[doc = ""]
118    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceTiming/connectStart)"]
119    #[doc = ""]
120    #[doc = "*This API requires the following crate features to be activated: `PerformanceTiming`*"]
121    pub fn connect_start(this: &PerformanceTiming) -> f64;
122    #[wasm_bindgen(method, getter, js_class = "PerformanceTiming", js_name = "connectEnd")]
123    #[doc = "Getter for the `connectEnd` field of this object."]
124    #[doc = ""]
125    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceTiming/connectEnd)"]
126    #[doc = ""]
127    #[doc = "*This API requires the following crate features to be activated: `PerformanceTiming`*"]
128    pub fn connect_end(this: &PerformanceTiming) -> f64;
129    #[wasm_bindgen(
130        method,
131        getter,
132        js_class = "PerformanceTiming",
133        js_name = "secureConnectionStart"
134    )]
135    #[doc = "Getter for the `secureConnectionStart` field of this object."]
136    #[doc = ""]
137    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceTiming/secureConnectionStart)"]
138    #[doc = ""]
139    #[doc = "*This API requires the following crate features to be activated: `PerformanceTiming`*"]
140    pub fn secure_connection_start(this: &PerformanceTiming) -> f64;
141    #[wasm_bindgen(
142        method,
143        getter,
144        js_class = "PerformanceTiming",
145        js_name = "requestStart"
146    )]
147    #[doc = "Getter for the `requestStart` field of this object."]
148    #[doc = ""]
149    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceTiming/requestStart)"]
150    #[doc = ""]
151    #[doc = "*This API requires the following crate features to be activated: `PerformanceTiming`*"]
152    pub fn request_start(this: &PerformanceTiming) -> f64;
153    #[wasm_bindgen(
154        method,
155        getter,
156        js_class = "PerformanceTiming",
157        js_name = "responseStart"
158    )]
159    #[doc = "Getter for the `responseStart` field of this object."]
160    #[doc = ""]
161    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceTiming/responseStart)"]
162    #[doc = ""]
163    #[doc = "*This API requires the following crate features to be activated: `PerformanceTiming`*"]
164    pub fn response_start(this: &PerformanceTiming) -> f64;
165    #[wasm_bindgen(
166        method,
167        getter,
168        js_class = "PerformanceTiming",
169        js_name = "responseEnd"
170    )]
171    #[doc = "Getter for the `responseEnd` field of this object."]
172    #[doc = ""]
173    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceTiming/responseEnd)"]
174    #[doc = ""]
175    #[doc = "*This API requires the following crate features to be activated: `PerformanceTiming`*"]
176    pub fn response_end(this: &PerformanceTiming) -> f64;
177    #[wasm_bindgen(method, getter, js_class = "PerformanceTiming", js_name = "domLoading")]
178    #[doc = "Getter for the `domLoading` field of this object."]
179    #[doc = ""]
180    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceTiming/domLoading)"]
181    #[doc = ""]
182    #[doc = "*This API requires the following crate features to be activated: `PerformanceTiming`*"]
183    pub fn dom_loading(this: &PerformanceTiming) -> f64;
184    #[wasm_bindgen(
185        method,
186        getter,
187        js_class = "PerformanceTiming",
188        js_name = "domInteractive"
189    )]
190    #[doc = "Getter for the `domInteractive` field of this object."]
191    #[doc = ""]
192    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceTiming/domInteractive)"]
193    #[doc = ""]
194    #[doc = "*This API requires the following crate features to be activated: `PerformanceTiming`*"]
195    pub fn dom_interactive(this: &PerformanceTiming) -> f64;
196    #[wasm_bindgen(
197        method,
198        getter,
199        js_class = "PerformanceTiming",
200        js_name = "domContentLoadedEventStart"
201    )]
202    #[doc = "Getter for the `domContentLoadedEventStart` field of this object."]
203    #[doc = ""]
204    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceTiming/domContentLoadedEventStart)"]
205    #[doc = ""]
206    #[doc = "*This API requires the following crate features to be activated: `PerformanceTiming`*"]
207    pub fn dom_content_loaded_event_start(this: &PerformanceTiming) -> f64;
208    #[wasm_bindgen(
209        method,
210        getter,
211        js_class = "PerformanceTiming",
212        js_name = "domContentLoadedEventEnd"
213    )]
214    #[doc = "Getter for the `domContentLoadedEventEnd` field of this object."]
215    #[doc = ""]
216    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceTiming/domContentLoadedEventEnd)"]
217    #[doc = ""]
218    #[doc = "*This API requires the following crate features to be activated: `PerformanceTiming`*"]
219    pub fn dom_content_loaded_event_end(this: &PerformanceTiming) -> f64;
220    #[wasm_bindgen(
221        method,
222        getter,
223        js_class = "PerformanceTiming",
224        js_name = "domComplete"
225    )]
226    #[doc = "Getter for the `domComplete` field of this object."]
227    #[doc = ""]
228    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceTiming/domComplete)"]
229    #[doc = ""]
230    #[doc = "*This API requires the following crate features to be activated: `PerformanceTiming`*"]
231    pub fn dom_complete(this: &PerformanceTiming) -> f64;
232    #[wasm_bindgen(
233        method,
234        getter,
235        js_class = "PerformanceTiming",
236        js_name = "loadEventStart"
237    )]
238    #[doc = "Getter for the `loadEventStart` field of this object."]
239    #[doc = ""]
240    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceTiming/loadEventStart)"]
241    #[doc = ""]
242    #[doc = "*This API requires the following crate features to be activated: `PerformanceTiming`*"]
243    pub fn load_event_start(this: &PerformanceTiming) -> f64;
244    #[wasm_bindgen(
245        method,
246        getter,
247        js_class = "PerformanceTiming",
248        js_name = "loadEventEnd"
249    )]
250    #[doc = "Getter for the `loadEventEnd` field of this object."]
251    #[doc = ""]
252    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceTiming/loadEventEnd)"]
253    #[doc = ""]
254    #[doc = "*This API requires the following crate features to be activated: `PerformanceTiming`*"]
255    pub fn load_event_end(this: &PerformanceTiming) -> f64;
256    #[wasm_bindgen(
257        method,
258        getter,
259        js_class = "PerformanceTiming",
260        js_name = "timeToNonBlankPaint"
261    )]
262    #[doc = "Getter for the `timeToNonBlankPaint` field of this object."]
263    #[doc = ""]
264    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceTiming/timeToNonBlankPaint)"]
265    #[doc = ""]
266    #[doc = "*This API requires the following crate features to be activated: `PerformanceTiming`*"]
267    pub fn time_to_non_blank_paint(this: &PerformanceTiming) -> f64;
268    #[wasm_bindgen(
269        method,
270        getter,
271        js_class = "PerformanceTiming",
272        js_name = "timeToDOMContentFlushed"
273    )]
274    #[doc = "Getter for the `timeToDOMContentFlushed` field of this object."]
275    #[doc = ""]
276    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceTiming/timeToDOMContentFlushed)"]
277    #[doc = ""]
278    #[doc = "*This API requires the following crate features to be activated: `PerformanceTiming`*"]
279    pub fn time_to_dom_content_flushed(this: &PerformanceTiming) -> f64;
280    #[wasm_bindgen(method, js_class = "PerformanceTiming", js_name = "toJSON")]
281    #[doc = "The `toJSON()` method."]
282    #[doc = ""]
283    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceTiming/toJSON)"]
284    #[doc = ""]
285    #[doc = "*This API requires the following crate features to be activated: `PerformanceTiming`*"]
286    pub fn to_json(this: &PerformanceTiming) -> ::js_sys::Object;
287}