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