]> git.proxmox.com Git - rustc.git/blob - vendor/web-sys/src/features/gen_LockManager.rs
New upstream version 1.76.0+dfsg1
[rustc.git] / vendor / web-sys / src / features / gen_LockManager.rs
1 #![allow(unused_imports)]
2 #![allow(clippy::all)]
3 use super::*;
4 use wasm_bindgen::prelude::*;
5 #[cfg(web_sys_unstable_apis)]
6 #[wasm_bindgen]
7 extern "C" {
8 # [wasm_bindgen (extends = :: js_sys :: Object , js_name = LockManager , typescript_type = "LockManager")]
9 #[derive(Debug, Clone, PartialEq, Eq)]
10 #[doc = "The `LockManager` class."]
11 #[doc = ""]
12 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/LockManager)"]
13 #[doc = ""]
14 #[doc = "*This API requires the following crate features to be activated: `LockManager`*"]
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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
18 pub type LockManager;
19 #[cfg(web_sys_unstable_apis)]
20 # [wasm_bindgen (method , structural , js_class = "LockManager" , js_name = query)]
21 #[doc = "The `query()` method."]
22 #[doc = ""]
23 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/LockManager/query)"]
24 #[doc = ""]
25 #[doc = "*This API requires the following crate features to be activated: `LockManager`*"]
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://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."]
33 #[doc = ""]
34 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/LockManager/request)"]
35 #[doc = ""]
36 #[doc = "*This API requires the following crate features to be activated: `LockManager`*"]
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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
40 pub fn request_with_callback(
41 this: &LockManager,
42 name: &str,
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."]
49 #[doc = ""]
50 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/LockManager/request)"]
51 #[doc = ""]
52 #[doc = "*This API requires the following crate features to be activated: `LockManager`, `LockOptions`*"]
53 #[doc = ""]
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(
57 this: &LockManager,
58 name: &str,
59 options: &LockOptions,
60 callback: &::js_sys::Function,
61 ) -> ::js_sys::Promise;
62 }