web_sys/features/
gen_PositionError.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 = PositionError , typescript_type = "PositionError")]
8 #[derive(Debug, Clone, PartialEq, Eq)]
9 #[doc = "The `PositionError` class."]
10 #[doc = ""]
11 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PositionError)"]
12 #[doc = ""]
13 #[doc = "*This API requires the following crate features to be activated: `PositionError`*"]
14 pub type PositionError;
15 # [wasm_bindgen (structural , method , getter , js_class = "PositionError" , 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/PositionError/code)"]
19 #[doc = ""]
20 #[doc = "*This API requires the following crate features to be activated: `PositionError`*"]
21 pub fn code(this: &PositionError) -> u16;
22 # [wasm_bindgen (structural , method , getter , js_class = "PositionError" , 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/PositionError/message)"]
26 #[doc = ""]
27 #[doc = "*This API requires the following crate features to be activated: `PositionError`*"]
28 pub fn message(this: &PositionError) -> ::alloc::string::String;
29}
30impl PositionError {
31 #[doc = "The `PositionError.PERMISSION_DENIED` const."]
32 #[doc = ""]
33 #[doc = "*This API requires the following crate features to be activated: `PositionError`*"]
34 pub const PERMISSION_DENIED: u16 = 1u64 as u16;
35 #[doc = "The `PositionError.POSITION_UNAVAILABLE` const."]
36 #[doc = ""]
37 #[doc = "*This API requires the following crate features to be activated: `PositionError`*"]
38 pub const POSITION_UNAVAILABLE: u16 = 2u64 as u16;
39 #[doc = "The `PositionError.TIMEOUT` const."]
40 #[doc = ""]
41 #[doc = "*This API requires the following crate features to be activated: `PositionError`*"]
42 pub const TIMEOUT: u16 = 3u64 as u16;
43}