maxcountryman_web_sys/features/
gen_BluetoothRemoteGattService.rs1#![allow(unused_imports)]
2use super::*;
3use wasm_bindgen::prelude::*;
4#[cfg(web_sys_unstable_apis)]
5#[wasm_bindgen]
6extern "C" {
7 # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = BluetoothRemoteGATTService , typescript_type = "BluetoothRemoteGATTService")]
8 #[derive(Debug, Clone, PartialEq, Eq)]
9 #[doc = "The `BluetoothRemoteGattService` class."]
10 #[doc = ""]
11 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTService)"]
12 #[doc = ""]
13 #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattService`*"]
14 #[doc = ""]
15 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
16 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
17 pub type BluetoothRemoteGattService;
18 #[cfg(web_sys_unstable_apis)]
19 #[cfg(feature = "BluetoothDevice")]
20 # [wasm_bindgen (structural , method , getter , js_class = "BluetoothRemoteGATTService" , js_name = device)]
21 #[doc = "Getter for the `device` field of this object."]
22 #[doc = ""]
23 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTService/device)"]
24 #[doc = ""]
25 #[doc = "*This API requires the following crate features to be activated: `BluetoothDevice`, `BluetoothRemoteGattService`*"]
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 device(this: &BluetoothRemoteGattService) -> BluetoothDevice;
30 #[cfg(web_sys_unstable_apis)]
31 # [wasm_bindgen (structural , method , getter , js_class = "BluetoothRemoteGATTService" , js_name = uuid)]
32 #[doc = "Getter for the `uuid` field of this object."]
33 #[doc = ""]
34 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTService/uuid)"]
35 #[doc = ""]
36 #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattService`*"]
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 uuid(this: &BluetoothRemoteGattService) -> String;
41 #[cfg(web_sys_unstable_apis)]
42 # [wasm_bindgen (structural , method , getter , js_class = "BluetoothRemoteGATTService" , js_name = isPrimary)]
43 #[doc = "Getter for the `isPrimary` field of this object."]
44 #[doc = ""]
45 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTService/isPrimary)"]
46 #[doc = ""]
47 #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattService`*"]
48 #[doc = ""]
49 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
50 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
51 pub fn is_primary(this: &BluetoothRemoteGattService) -> bool;
52 #[cfg(web_sys_unstable_apis)]
53 # [wasm_bindgen (structural , method , getter , js_class = "BluetoothRemoteGATTService" , js_name = oncharacteristicvaluechanged)]
54 #[doc = "Getter for the `oncharacteristicvaluechanged` field of this object."]
55 #[doc = ""]
56 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTService/oncharacteristicvaluechanged)"]
57 #[doc = ""]
58 #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattService`*"]
59 #[doc = ""]
60 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
61 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
62 pub fn oncharacteristicvaluechanged(
63 this: &BluetoothRemoteGattService,
64 ) -> Option<::js_sys::Function>;
65 #[cfg(web_sys_unstable_apis)]
66 # [wasm_bindgen (structural , method , setter , js_class = "BluetoothRemoteGATTService" , js_name = oncharacteristicvaluechanged)]
67 #[doc = "Setter for the `oncharacteristicvaluechanged` field of this object."]
68 #[doc = ""]
69 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTService/oncharacteristicvaluechanged)"]
70 #[doc = ""]
71 #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattService`*"]
72 #[doc = ""]
73 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
74 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
75 pub fn set_oncharacteristicvaluechanged(
76 this: &BluetoothRemoteGattService,
77 value: Option<&::js_sys::Function>,
78 );
79 #[cfg(web_sys_unstable_apis)]
80 # [wasm_bindgen (structural , method , getter , js_class = "BluetoothRemoteGATTService" , js_name = onserviceadded)]
81 #[doc = "Getter for the `onserviceadded` field of this object."]
82 #[doc = ""]
83 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTService/onserviceadded)"]
84 #[doc = ""]
85 #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattService`*"]
86 #[doc = ""]
87 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
88 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
89 pub fn onserviceadded(this: &BluetoothRemoteGattService) -> Option<::js_sys::Function>;
90 #[cfg(web_sys_unstable_apis)]
91 # [wasm_bindgen (structural , method , setter , js_class = "BluetoothRemoteGATTService" , js_name = onserviceadded)]
92 #[doc = "Setter for the `onserviceadded` field of this object."]
93 #[doc = ""]
94 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTService/onserviceadded)"]
95 #[doc = ""]
96 #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattService`*"]
97 #[doc = ""]
98 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
99 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
100 pub fn set_onserviceadded(
101 this: &BluetoothRemoteGattService,
102 value: Option<&::js_sys::Function>,
103 );
104 #[cfg(web_sys_unstable_apis)]
105 # [wasm_bindgen (structural , method , getter , js_class = "BluetoothRemoteGATTService" , js_name = onservicechanged)]
106 #[doc = "Getter for the `onservicechanged` field of this object."]
107 #[doc = ""]
108 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTService/onservicechanged)"]
109 #[doc = ""]
110 #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattService`*"]
111 #[doc = ""]
112 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
113 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
114 pub fn onservicechanged(this: &BluetoothRemoteGattService) -> Option<::js_sys::Function>;
115 #[cfg(web_sys_unstable_apis)]
116 # [wasm_bindgen (structural , method , setter , js_class = "BluetoothRemoteGATTService" , js_name = onservicechanged)]
117 #[doc = "Setter for the `onservicechanged` field of this object."]
118 #[doc = ""]
119 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTService/onservicechanged)"]
120 #[doc = ""]
121 #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattService`*"]
122 #[doc = ""]
123 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
124 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
125 pub fn set_onservicechanged(
126 this: &BluetoothRemoteGattService,
127 value: Option<&::js_sys::Function>,
128 );
129 #[cfg(web_sys_unstable_apis)]
130 # [wasm_bindgen (structural , method , getter , js_class = "BluetoothRemoteGATTService" , js_name = onserviceremoved)]
131 #[doc = "Getter for the `onserviceremoved` field of this object."]
132 #[doc = ""]
133 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTService/onserviceremoved)"]
134 #[doc = ""]
135 #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattService`*"]
136 #[doc = ""]
137 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
138 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
139 pub fn onserviceremoved(this: &BluetoothRemoteGattService) -> Option<::js_sys::Function>;
140 #[cfg(web_sys_unstable_apis)]
141 # [wasm_bindgen (structural , method , setter , js_class = "BluetoothRemoteGATTService" , js_name = onserviceremoved)]
142 #[doc = "Setter for the `onserviceremoved` field of this object."]
143 #[doc = ""]
144 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTService/onserviceremoved)"]
145 #[doc = ""]
146 #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattService`*"]
147 #[doc = ""]
148 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
149 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
150 pub fn set_onserviceremoved(
151 this: &BluetoothRemoteGattService,
152 value: Option<&::js_sys::Function>,
153 );
154 #[cfg(web_sys_unstable_apis)]
155 # [wasm_bindgen (method , structural , js_class = "BluetoothRemoteGATTService" , js_name = getCharacteristic)]
156 #[doc = "The `getCharacteristic()` method."]
157 #[doc = ""]
158 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTService/getCharacteristic)"]
159 #[doc = ""]
160 #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattService`*"]
161 #[doc = ""]
162 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
163 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
164 pub fn get_characteristic_with_str(
165 this: &BluetoothRemoteGattService,
166 characteristic: &str,
167 ) -> ::js_sys::Promise;
168 #[cfg(web_sys_unstable_apis)]
169 # [wasm_bindgen (method , structural , js_class = "BluetoothRemoteGATTService" , js_name = getCharacteristic)]
170 #[doc = "The `getCharacteristic()` method."]
171 #[doc = ""]
172 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTService/getCharacteristic)"]
173 #[doc = ""]
174 #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattService`*"]
175 #[doc = ""]
176 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
177 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
178 pub fn get_characteristic_with_u32(
179 this: &BluetoothRemoteGattService,
180 characteristic: u32,
181 ) -> ::js_sys::Promise;
182 #[cfg(web_sys_unstable_apis)]
183 # [wasm_bindgen (method , structural , js_class = "BluetoothRemoteGATTService" , js_name = getCharacteristics)]
184 #[doc = "The `getCharacteristics()` method."]
185 #[doc = ""]
186 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTService/getCharacteristics)"]
187 #[doc = ""]
188 #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattService`*"]
189 #[doc = ""]
190 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
191 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
192 pub fn get_characteristics(this: &BluetoothRemoteGattService) -> ::js_sys::Promise;
193 #[cfg(web_sys_unstable_apis)]
194 # [wasm_bindgen (method , structural , js_class = "BluetoothRemoteGATTService" , js_name = getCharacteristics)]
195 #[doc = "The `getCharacteristics()` method."]
196 #[doc = ""]
197 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTService/getCharacteristics)"]
198 #[doc = ""]
199 #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattService`*"]
200 #[doc = ""]
201 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
202 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
203 pub fn get_characteristics_with_str(
204 this: &BluetoothRemoteGattService,
205 characteristic: &str,
206 ) -> ::js_sys::Promise;
207 #[cfg(web_sys_unstable_apis)]
208 # [wasm_bindgen (method , structural , js_class = "BluetoothRemoteGATTService" , js_name = getCharacteristics)]
209 #[doc = "The `getCharacteristics()` method."]
210 #[doc = ""]
211 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTService/getCharacteristics)"]
212 #[doc = ""]
213 #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattService`*"]
214 #[doc = ""]
215 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
216 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
217 pub fn get_characteristics_with_u32(
218 this: &BluetoothRemoteGattService,
219 characteristic: u32,
220 ) -> ::js_sys::Promise;
221 #[cfg(web_sys_unstable_apis)]
222 # [wasm_bindgen (method , structural , js_class = "BluetoothRemoteGATTService" , js_name = getIncludedService)]
223 #[doc = "The `getIncludedService()` method."]
224 #[doc = ""]
225 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTService/getIncludedService)"]
226 #[doc = ""]
227 #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattService`*"]
228 #[doc = ""]
229 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
230 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
231 pub fn get_included_service_with_str(
232 this: &BluetoothRemoteGattService,
233 service: &str,
234 ) -> ::js_sys::Promise;
235 #[cfg(web_sys_unstable_apis)]
236 # [wasm_bindgen (method , structural , js_class = "BluetoothRemoteGATTService" , js_name = getIncludedService)]
237 #[doc = "The `getIncludedService()` method."]
238 #[doc = ""]
239 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTService/getIncludedService)"]
240 #[doc = ""]
241 #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattService`*"]
242 #[doc = ""]
243 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
244 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
245 pub fn get_included_service_with_u32(
246 this: &BluetoothRemoteGattService,
247 service: u32,
248 ) -> ::js_sys::Promise;
249 #[cfg(web_sys_unstable_apis)]
250 # [wasm_bindgen (method , structural , js_class = "BluetoothRemoteGATTService" , js_name = getIncludedServices)]
251 #[doc = "The `getIncludedServices()` method."]
252 #[doc = ""]
253 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTService/getIncludedServices)"]
254 #[doc = ""]
255 #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattService`*"]
256 #[doc = ""]
257 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
258 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
259 pub fn get_included_services(this: &BluetoothRemoteGattService) -> ::js_sys::Promise;
260 #[cfg(web_sys_unstable_apis)]
261 # [wasm_bindgen (method , structural , js_class = "BluetoothRemoteGATTService" , js_name = getIncludedServices)]
262 #[doc = "The `getIncludedServices()` method."]
263 #[doc = ""]
264 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTService/getIncludedServices)"]
265 #[doc = ""]
266 #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattService`*"]
267 #[doc = ""]
268 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
269 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
270 pub fn get_included_services_with_str(
271 this: &BluetoothRemoteGattService,
272 service: &str,
273 ) -> ::js_sys::Promise;
274 #[cfg(web_sys_unstable_apis)]
275 # [wasm_bindgen (method , structural , js_class = "BluetoothRemoteGATTService" , js_name = getIncludedServices)]
276 #[doc = "The `getIncludedServices()` method."]
277 #[doc = ""]
278 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTService/getIncludedServices)"]
279 #[doc = ""]
280 #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattService`*"]
281 #[doc = ""]
282 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
283 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
284 pub fn get_included_services_with_u32(
285 this: &BluetoothRemoteGattService,
286 service: u32,
287 ) -> ::js_sys::Promise;
288}