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