web_sys/features/
gen_PerformanceNavigation.rs1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[wasm_bindgen]
6extern "C" {
7 # [wasm_bindgen (extends = :: js_sys :: Object , js_name = PerformanceNavigation , typescript_type = "PerformanceNavigation")]
8 #[derive(Debug, Clone, PartialEq, Eq)]
9 #[doc = "The `PerformanceNavigation` class."]
10 #[doc = ""]
11 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceNavigation)"]
12 #[doc = ""]
13 #[doc = "*This API requires the following crate features to be activated: `PerformanceNavigation`*"]
14 pub type PerformanceNavigation;
15 # [wasm_bindgen (structural , method , getter , js_class = "PerformanceNavigation" , js_name = type)]
16 #[doc = "Getter for the `type` field of this object."]
17 #[doc = ""]
18 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceNavigation/type)"]
19 #[doc = ""]
20 #[doc = "*This API requires the following crate features to be activated: `PerformanceNavigation`*"]
21 pub fn type_(this: &PerformanceNavigation) -> u16;
22 # [wasm_bindgen (structural , method , getter , js_class = "PerformanceNavigation" , js_name = redirectCount)]
23 #[doc = "Getter for the `redirectCount` field of this object."]
24 #[doc = ""]
25 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceNavigation/redirectCount)"]
26 #[doc = ""]
27 #[doc = "*This API requires the following crate features to be activated: `PerformanceNavigation`*"]
28 pub fn redirect_count(this: &PerformanceNavigation) -> u16;
29 # [wasm_bindgen (method , structural , js_class = "PerformanceNavigation" , js_name = toJSON)]
30 #[doc = "The `toJSON()` method."]
31 #[doc = ""]
32 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceNavigation/toJSON)"]
33 #[doc = ""]
34 #[doc = "*This API requires the following crate features to be activated: `PerformanceNavigation`*"]
35 pub fn to_json(this: &PerformanceNavigation) -> ::js_sys::Object;
36}
37impl PerformanceNavigation {
38 #[doc = "The `PerformanceNavigation.TYPE_NAVIGATE` const."]
39 #[doc = ""]
40 #[doc = "*This API requires the following crate features to be activated: `PerformanceNavigation`*"]
41 pub const TYPE_NAVIGATE: u16 = 0i64 as u16;
42 #[doc = "The `PerformanceNavigation.TYPE_RELOAD` const."]
43 #[doc = ""]
44 #[doc = "*This API requires the following crate features to be activated: `PerformanceNavigation`*"]
45 pub const TYPE_RELOAD: u16 = 1u64 as u16;
46 #[doc = "The `PerformanceNavigation.TYPE_BACK_FORWARD` const."]
47 #[doc = ""]
48 #[doc = "*This API requires the following crate features to be activated: `PerformanceNavigation`*"]
49 pub const TYPE_BACK_FORWARD: u16 = 2u64 as u16;
50 #[doc = "The `PerformanceNavigation.TYPE_RESERVED` const."]
51 #[doc = ""]
52 #[doc = "*This API requires the following crate features to be activated: `PerformanceNavigation`*"]
53 pub const TYPE_RESERVED: u16 = 255u64 as u16;
54}