]>
git.proxmox.com Git - rustc.git/blob - vendor/web-sys/src/features/gen_LockManager.rs
1 #![allow(unused_imports)]
4 use wasm_bindgen
::prelude
::*;
5 #[cfg(web_sys_unstable_apis)]
8 # [wasm_bindgen (extends = :: js_sys :: Object , js_name = LockManager , typescript_type = "LockManager")]
9 #[derive(Debug, Clone, PartialEq, Eq)]
10 #[doc = "The `LockManager` class."]
12 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/LockManager)"]
14 #[doc = "*This API requires the following crate features to be activated: `LockManager`*"]
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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
19 #[cfg(web_sys_unstable_apis)]
20 # [wasm_bindgen (method , structural , js_class = "LockManager" , js_name = query)]
21 #[doc = "The `query()` method."]
23 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/LockManager/query)"]
25 #[doc = "*This API requires the following crate features to be activated: `LockManager`*"]
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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
29 pub fn query(this
: &LockManager
) -> ::js_sys
::Promise
;
30 #[cfg(web_sys_unstable_apis)]
31 # [wasm_bindgen (method , structural , js_class = "LockManager" , js_name = request)]
32 #[doc = "The `request()` method."]
34 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/LockManager/request)"]
36 #[doc = "*This API requires the following crate features to be activated: `LockManager`*"]
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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
40 pub fn request_with_callback(
43 callback
: &::js_sys
::Function
,
44 ) -> ::js_sys
::Promise
;
45 #[cfg(web_sys_unstable_apis)]
46 #[cfg(feature = "LockOptions")]
47 # [wasm_bindgen (method , structural , js_class = "LockManager" , js_name = request)]
48 #[doc = "The `request()` method."]
50 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/LockManager/request)"]
52 #[doc = "*This API requires the following crate features to be activated: `LockManager`, `LockOptions`*"]
54 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
55 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
56 pub fn request_with_options_and_callback(
59 options
: &LockOptions
,
60 callback
: &::js_sys
::Function
,
61 ) -> ::js_sys
::Promise
;