web_sys/features/
gen_ImageCaptureError.rs1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[wasm_bindgen]
6extern "C" {
7 # [wasm_bindgen (is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = ImageCaptureError , typescript_type = "ImageCaptureError")]
8 #[derive(Debug, Clone, PartialEq, Eq)]
9 #[doc = "The `ImageCaptureError` class."]
10 #[doc = ""]
11 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ImageCaptureError)"]
12 #[doc = ""]
13 #[doc = "*This API requires the following crate features to be activated: `ImageCaptureError`*"]
14 pub type ImageCaptureError;
15 # [wasm_bindgen (structural , method , getter , js_class = "ImageCaptureError" , js_name = code)]
16 #[doc = "Getter for the `code` field of this object."]
17 #[doc = ""]
18 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ImageCaptureError/code)"]
19 #[doc = ""]
20 #[doc = "*This API requires the following crate features to be activated: `ImageCaptureError`*"]
21 pub fn code(this: &ImageCaptureError) -> u16;
22 # [wasm_bindgen (structural , method , getter , js_class = "ImageCaptureError" , js_name = message)]
23 #[doc = "Getter for the `message` field of this object."]
24 #[doc = ""]
25 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ImageCaptureError/message)"]
26 #[doc = ""]
27 #[doc = "*This API requires the following crate features to be activated: `ImageCaptureError`*"]
28 pub fn message(this: &ImageCaptureError) -> ::alloc::string::String;
29}
30impl ImageCaptureError {
31 #[doc = "The `ImageCaptureError.FRAME_GRAB_ERROR` const."]
32 #[doc = ""]
33 #[doc = "*This API requires the following crate features to be activated: `ImageCaptureError`*"]
34 pub const FRAME_GRAB_ERROR: u16 = 1u64 as u16;
35 #[doc = "The `ImageCaptureError.SETTINGS_ERROR` const."]
36 #[doc = ""]
37 #[doc = "*This API requires the following crate features to be activated: `ImageCaptureError`*"]
38 pub const SETTINGS_ERROR: u16 = 2u64 as u16;
39 #[doc = "The `ImageCaptureError.PHOTO_ERROR` const."]
40 #[doc = ""]
41 #[doc = "*This API requires the following crate features to be activated: `ImageCaptureError`*"]
42 pub const PHOTO_ERROR: u16 = 3u64 as u16;
43 #[doc = "The `ImageCaptureError.ERROR_UNKNOWN` const."]
44 #[doc = ""]
45 #[doc = "*This API requires the following crate features to be activated: `ImageCaptureError`*"]
46 pub const ERROR_UNKNOWN: u16 = 4u64 as u16;
47}