Skip to main content

web_sys/features/
gen_GpuPipelineError.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 = "DomException",
10        extends = "::js_sys::Object",
11        js_name = "GPUPipelineError",
12        typescript_type = "GPUPipelineError"
13    )]
14    #[derive(Debug, Clone, PartialEq, Eq)]
15    #[doc = "The `GpuPipelineError` class."]
16    #[doc = ""]
17    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUPipelineError)"]
18    #[doc = ""]
19    #[doc = "*This API requires the following crate features to be activated: `GpuPipelineError`*"]
20    #[doc = ""]
21    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
22    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
23    pub type GpuPipelineError;
24    #[cfg(web_sys_unstable_apis)]
25    #[cfg(feature = "GpuPipelineErrorReason")]
26    #[wasm_bindgen(method, getter, js_class = "GPUPipelineError", js_name = "reason")]
27    #[doc = "Getter for the `reason` field of this object."]
28    #[doc = ""]
29    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUPipelineError/reason)"]
30    #[doc = ""]
31    #[doc = "*This API requires the following crate features to be activated: `GpuPipelineError`, `GpuPipelineErrorReason`*"]
32    #[doc = ""]
33    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
34    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
35    pub fn reason(this: &GpuPipelineError) -> GpuPipelineErrorReason;
36    #[cfg(web_sys_unstable_apis)]
37    #[cfg(feature = "GpuPipelineErrorInit")]
38    #[wasm_bindgen(catch, constructor, js_class = "GPUPipelineError")]
39    #[doc = "The `new GpuPipelineError(..)` constructor, creating a new instance of `GpuPipelineError`."]
40    #[doc = ""]
41    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUPipelineError/GPUPipelineError)"]
42    #[doc = ""]
43    #[doc = "*This API requires the following crate features to be activated: `GpuPipelineError`, `GpuPipelineErrorInit`*"]
44    #[doc = ""]
45    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
46    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
47    pub fn new(options: &GpuPipelineErrorInit) -> Result<GpuPipelineError, JsValue>;
48    #[cfg(web_sys_unstable_apis)]
49    #[cfg(feature = "GpuPipelineErrorInit")]
50    #[wasm_bindgen(catch, constructor, js_class = "GPUPipelineError")]
51    #[doc = "The `new GpuPipelineError(..)` constructor, creating a new instance of `GpuPipelineError`."]
52    #[doc = ""]
53    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUPipelineError/GPUPipelineError)"]
54    #[doc = ""]
55    #[doc = "*This API requires the following crate features to be activated: `GpuPipelineError`, `GpuPipelineErrorInit`*"]
56    #[doc = ""]
57    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
58    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
59    pub fn new_with_message(
60        message: &str,
61        options: &GpuPipelineErrorInit,
62    ) -> Result<GpuPipelineError, JsValue>;
63}