web_sys/features/
gen_GeolocationPositionError.rs1#![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 (extends = :: js_sys :: Object , js_name = GeolocationPositionError , typescript_type = "GeolocationPositionError")]
9 #[derive(Debug, Clone, PartialEq, Eq)]
10 #[doc = "The `GeolocationPositionError` class."]
11 #[doc = ""]
12 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GeolocationPositionError)"]
13 #[doc = ""]
14 #[doc = "*This API requires the following crate features to be activated: `GeolocationPositionError`*"]
15 #[doc = ""]
16 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
17 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
18 pub type GeolocationPositionError;
19 #[cfg(web_sys_unstable_apis)]
20 # [wasm_bindgen (structural , method , getter , js_class = "GeolocationPositionError" , js_name = code)]
21 #[doc = "Getter for the `code` field of this object."]
22 #[doc = ""]
23 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GeolocationPositionError/code)"]
24 #[doc = ""]
25 #[doc = "*This API requires the following crate features to be activated: `GeolocationPositionError`*"]
26 #[doc = ""]
27 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
28 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
29 pub fn code(this: &GeolocationPositionError) -> u16;
30 #[cfg(web_sys_unstable_apis)]
31 # [wasm_bindgen (structural , method , getter , js_class = "GeolocationPositionError" , js_name = message)]
32 #[doc = "Getter for the `message` field of this object."]
33 #[doc = ""]
34 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GeolocationPositionError/message)"]
35 #[doc = ""]
36 #[doc = "*This API requires the following crate features to be activated: `GeolocationPositionError`*"]
37 #[doc = ""]
38 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
39 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
40 pub fn message(this: &GeolocationPositionError) -> ::alloc::string::String;
41}
42#[cfg(web_sys_unstable_apis)]
43impl GeolocationPositionError {
44 #[cfg(web_sys_unstable_apis)]
45 #[doc = "The `GeolocationPositionError.PERMISSION_DENIED` const."]
46 #[doc = ""]
47 #[doc = "*This API requires the following crate features to be activated: `GeolocationPositionError`*"]
48 #[doc = ""]
49 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
50 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
51 pub const PERMISSION_DENIED: u16 = 1u64 as u16;
52 #[cfg(web_sys_unstable_apis)]
53 #[doc = "The `GeolocationPositionError.POSITION_UNAVAILABLE` const."]
54 #[doc = ""]
55 #[doc = "*This API requires the following crate features to be activated: `GeolocationPositionError`*"]
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 const POSITION_UNAVAILABLE: u16 = 2u64 as u16;
60 #[cfg(web_sys_unstable_apis)]
61 #[doc = "The `GeolocationPositionError.TIMEOUT` const."]
62 #[doc = ""]
63 #[doc = "*This API requires the following crate features to be activated: `GeolocationPositionError`*"]
64 #[doc = ""]
65 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
66 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
67 pub const TIMEOUT: u16 = 3u64 as u16;
68}