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