maxcountryman_web_sys/features/
gen_PositionError.rs

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