Skip to main content

web_sys/features/
gen_GpuDeviceLostInfo.rs

1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[cfg(web_sys_unstable_apis)]
6#[wasm_bindgen]
7extern "C" {
8    #[wasm_bindgen(
9        extends = "::js_sys::Object",
10        js_name = "GPUDeviceLostInfo",
11        typescript_type = "GPUDeviceLostInfo"
12    )]
13    #[derive(Debug, Clone, PartialEq, Eq)]
14    #[doc = "The `GpuDeviceLostInfo` class."]
15    #[doc = ""]
16    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDeviceLostInfo)"]
17    #[doc = ""]
18    #[doc = "*This API requires the following crate features to be activated: `GpuDeviceLostInfo`*"]
19    #[doc = ""]
20    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
21    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
22    pub type GpuDeviceLostInfo;
23    #[cfg(web_sys_unstable_apis)]
24    #[cfg(feature = "GpuDeviceLostReason")]
25    #[wasm_bindgen(method, getter, js_class = "GPUDeviceLostInfo", js_name = "reason")]
26    #[doc = "Getter for the `reason` field of this object."]
27    #[doc = ""]
28    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDeviceLostInfo/reason)"]
29    #[doc = ""]
30    #[doc = "*This API requires the following crate features to be activated: `GpuDeviceLostInfo`, `GpuDeviceLostReason`*"]
31    #[doc = ""]
32    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
33    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
34    pub fn reason(this: &GpuDeviceLostInfo) -> GpuDeviceLostReason;
35    #[cfg(web_sys_unstable_apis)]
36    #[wasm_bindgen(method, getter, js_class = "GPUDeviceLostInfo", js_name = "message")]
37    #[doc = "Getter for the `message` field of this object."]
38    #[doc = ""]
39    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDeviceLostInfo/message)"]
40    #[doc = ""]
41    #[doc = "*This API requires the following crate features to be activated: `GpuDeviceLostInfo`*"]
42    #[doc = ""]
43    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
44    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
45    pub fn message(this: &GpuDeviceLostInfo) -> ::alloc::string::String;
46}