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 = IdleDeadline , typescript_type = "IdleDeadline")] 7 #[derive(Debug, Clone, PartialEq, Eq)] 8 #[doc = "The `IdleDeadline` class."] 9 #[doc = ""] 10 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IdleDeadline)"] 11 #[doc = ""] 12 #[doc = "*This API requires the following crate features to be activated: `IdleDeadline`*"] 13 pub type IdleDeadline; 14 # [wasm_bindgen (structural , method , getter , js_class = "IdleDeadline" , js_name = didTimeout)] 15 #[doc = "Getter for the `didTimeout` field of this object."] 16 #[doc = ""] 17 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IdleDeadline/didTimeout)"] 18 #[doc = ""] 19 #[doc = "*This API requires the following crate features to be activated: `IdleDeadline`*"] did_timeout(this: &IdleDeadline) -> bool20 pub fn did_timeout(this: &IdleDeadline) -> bool; 21 # [wasm_bindgen (method , structural , js_class = "IdleDeadline" , js_name = timeRemaining)] 22 #[doc = "The `timeRemaining()` method."] 23 #[doc = ""] 24 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IdleDeadline/timeRemaining)"] 25 #[doc = ""] 26 #[doc = "*This API requires the following crate features to be activated: `IdleDeadline`*"] time_remaining(this: &IdleDeadline) -> f6427 pub fn time_remaining(this: &IdleDeadline) -> f64; 28 } 29