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