web_sys/features/
gen_BluetoothRemoteGattService.rs

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