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://wasm-bindgen.github.io/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://wasm-bindgen.github.io/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://wasm-bindgen.github.io/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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
52 pub fn connect(
53 this: &BluetoothRemoteGattServer,
54 ) -> ::js_sys::Promise<BluetoothRemoteGattServer>;
55 #[cfg(web_sys_unstable_apis)]
56 # [wasm_bindgen (method , structural , js_class = "BluetoothRemoteGATTServer" , js_name = disconnect)]
57 #[doc = "The `disconnect()` method."]
58 #[doc = ""]
59 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTServer/disconnect)"]
60 #[doc = ""]
61 #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattServer`*"]
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 fn disconnect(this: &BluetoothRemoteGattServer);
66 #[cfg(web_sys_unstable_apis)]
67 #[cfg(feature = "BluetoothRemoteGattService")]
68 # [wasm_bindgen (method , structural , js_class = "BluetoothRemoteGATTServer" , js_name = getPrimaryService)]
69 #[doc = "The `getPrimaryService()` method."]
70 #[doc = ""]
71 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTServer/getPrimaryService)"]
72 #[doc = ""]
73 #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattServer`, `BluetoothRemoteGattService`*"]
74 #[doc = ""]
75 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
76 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
77 pub fn get_primary_service_with_str(
78 this: &BluetoothRemoteGattServer,
79 service: &str,
80 ) -> ::js_sys::Promise<BluetoothRemoteGattService>;
81 #[cfg(web_sys_unstable_apis)]
82 #[cfg(feature = "BluetoothRemoteGattService")]
83 # [wasm_bindgen (method , structural , js_class = "BluetoothRemoteGATTServer" , js_name = getPrimaryService)]
84 #[doc = "The `getPrimaryService()` method."]
85 #[doc = ""]
86 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTServer/getPrimaryService)"]
87 #[doc = ""]
88 #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattServer`, `BluetoothRemoteGattService`*"]
89 #[doc = ""]
90 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
91 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
92 pub fn get_primary_service_with_u32(
93 this: &BluetoothRemoteGattServer,
94 service: u32,
95 ) -> ::js_sys::Promise<BluetoothRemoteGattService>;
96 #[cfg(web_sys_unstable_apis)]
97 #[cfg(feature = "BluetoothRemoteGattService")]
98 # [wasm_bindgen (method , structural , js_class = "BluetoothRemoteGATTServer" , js_name = getPrimaryServices)]
99 #[doc = "The `getPrimaryServices()` method."]
100 #[doc = ""]
101 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTServer/getPrimaryServices)"]
102 #[doc = ""]
103 #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattServer`, `BluetoothRemoteGattService`*"]
104 #[doc = ""]
105 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
106 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
107 pub fn get_primary_services(
108 this: &BluetoothRemoteGattServer,
109 ) -> ::js_sys::Promise<::js_sys::Array<BluetoothRemoteGattService>>;
110 #[cfg(web_sys_unstable_apis)]
111 #[cfg(feature = "BluetoothRemoteGattService")]
112 # [wasm_bindgen (method , structural , js_class = "BluetoothRemoteGATTServer" , js_name = getPrimaryServices)]
113 #[doc = "The `getPrimaryServices()` method."]
114 #[doc = ""]
115 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTServer/getPrimaryServices)"]
116 #[doc = ""]
117 #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattServer`, `BluetoothRemoteGattService`*"]
118 #[doc = ""]
119 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
120 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
121 pub fn get_primary_services_with_str(
122 this: &BluetoothRemoteGattServer,
123 service: &str,
124 ) -> ::js_sys::Promise<::js_sys::Array<BluetoothRemoteGattService>>;
125 #[cfg(web_sys_unstable_apis)]
126 #[cfg(feature = "BluetoothRemoteGattService")]
127 # [wasm_bindgen (method , structural , js_class = "BluetoothRemoteGATTServer" , js_name = getPrimaryServices)]
128 #[doc = "The `getPrimaryServices()` method."]
129 #[doc = ""]
130 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTServer/getPrimaryServices)"]
131 #[doc = ""]
132 #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattServer`, `BluetoothRemoteGattService`*"]
133 #[doc = ""]
134 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
135 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
136 pub fn get_primary_services_with_u32(
137 this: &BluetoothRemoteGattServer,
138 service: u32,
139 ) -> ::js_sys::Promise<::js_sys::Array<BluetoothRemoteGattService>>;
140}