web_sys/features/
gen_BluetoothRemoteGattServer.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 = BluetoothRemoteGATTServer , typescript_type = "BluetoothRemoteGATTServer")]
9 #[derive(Debug, Clone, PartialEq, Eq)]
10 #[doc = "The `BluetoothRemoteGattServer` class."]
11 #[doc = ""]
12 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTServer)"]
13 #[doc = ""]
14 #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattServer`*"]
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 BluetoothRemoteGattServer;
19 #[cfg(web_sys_unstable_apis)]
20 #[cfg(feature = "BluetoothDevice")]
21 # [wasm_bindgen (structural , method , getter , js_class = "BluetoothRemoteGATTServer" , js_name = device)]
22 #[doc = "Getter for the `device` field of this object."]
23 #[doc = ""]
24 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTServer/device)"]
25 #[doc = ""]
26 #[doc = "*This API requires the following crate features to be activated: `BluetoothDevice`, `BluetoothRemoteGattServer`*"]
27 #[doc = ""]
28 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
29 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
30 pub fn device(this: &BluetoothRemoteGattServer) -> BluetoothDevice;
31 #[cfg(web_sys_unstable_apis)]
32 # [wasm_bindgen (structural , method , getter , js_class = "BluetoothRemoteGATTServer" , js_name = connected)]
33 #[doc = "Getter for the `connected` field of this object."]
34 #[doc = ""]
35 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTServer/connected)"]
36 #[doc = ""]
37 #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattServer`*"]
38 #[doc = ""]
39 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
40 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
41 pub fn connected(this: &BluetoothRemoteGattServer) -> bool;
42 #[cfg(web_sys_unstable_apis)]
43 # [wasm_bindgen (method , structural , js_class = "BluetoothRemoteGATTServer" , js_name = connect)]
44 #[doc = "The `connect()` method."]
45 #[doc = ""]
46 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTServer/connect)"]
47 #[doc = ""]
48 #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattServer`*"]
49 #[doc = ""]
50 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
51 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
52 pub fn connect(this: &BluetoothRemoteGattServer) -> ::js_sys::Promise;
53 #[cfg(web_sys_unstable_apis)]
54 # [wasm_bindgen (method , structural , js_class = "BluetoothRemoteGATTServer" , js_name = disconnect)]
55 #[doc = "The `disconnect()` method."]
56 #[doc = ""]
57 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTServer/disconnect)"]
58 #[doc = ""]
59 #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattServer`*"]
60 #[doc = ""]
61 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
62 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
63 pub fn disconnect(this: &BluetoothRemoteGattServer);
64 #[cfg(web_sys_unstable_apis)]
65 # [wasm_bindgen (method , structural , js_class = "BluetoothRemoteGATTServer" , js_name = getPrimaryService)]
66 #[doc = "The `getPrimaryService()` method."]
67 #[doc = ""]
68 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTServer/getPrimaryService)"]
69 #[doc = ""]
70 #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattServer`*"]
71 #[doc = ""]
72 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
73 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
74 pub fn get_primary_service_with_str(
75 this: &BluetoothRemoteGattServer,
76 service: &str,
77 ) -> ::js_sys::Promise;
78 #[cfg(web_sys_unstable_apis)]
79 # [wasm_bindgen (method , structural , js_class = "BluetoothRemoteGATTServer" , js_name = getPrimaryService)]
80 #[doc = "The `getPrimaryService()` method."]
81 #[doc = ""]
82 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTServer/getPrimaryService)"]
83 #[doc = ""]
84 #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattServer`*"]
85 #[doc = ""]
86 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
87 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
88 pub fn get_primary_service_with_u32(
89 this: &BluetoothRemoteGattServer,
90 service: u32,
91 ) -> ::js_sys::Promise;
92 #[cfg(web_sys_unstable_apis)]
93 # [wasm_bindgen (method , structural , js_class = "BluetoothRemoteGATTServer" , js_name = getPrimaryServices)]
94 #[doc = "The `getPrimaryServices()` method."]
95 #[doc = ""]
96 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTServer/getPrimaryServices)"]
97 #[doc = ""]
98 #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattServer`*"]
99 #[doc = ""]
100 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
101 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
102 pub fn get_primary_services(this: &BluetoothRemoteGattServer) -> ::js_sys::Promise;
103 #[cfg(web_sys_unstable_apis)]
104 # [wasm_bindgen (method , structural , js_class = "BluetoothRemoteGATTServer" , js_name = getPrimaryServices)]
105 #[doc = "The `getPrimaryServices()` method."]
106 #[doc = ""]
107 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTServer/getPrimaryServices)"]
108 #[doc = ""]
109 #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattServer`*"]
110 #[doc = ""]
111 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
112 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
113 pub fn get_primary_services_with_str(
114 this: &BluetoothRemoteGattServer,
115 service: &str,
116 ) -> ::js_sys::Promise;
117 #[cfg(web_sys_unstable_apis)]
118 # [wasm_bindgen (method , structural , js_class = "BluetoothRemoteGATTServer" , js_name = getPrimaryServices)]
119 #[doc = "The `getPrimaryServices()` method."]
120 #[doc = ""]
121 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTServer/getPrimaryServices)"]
122 #[doc = ""]
123 #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattServer`*"]
124 #[doc = ""]
125 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
126 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
127 pub fn get_primary_services_with_u32(
128 this: &BluetoothRemoteGattServer,
129 service: u32,
130 ) -> ::js_sys::Promise;
131}