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(
9 extends = "EventTarget",
10 extends = "::js_sys::Object",
11 js_name = "BluetoothRemoteGATTCharacteristic",
12 typescript_type = "BluetoothRemoteGATTCharacteristic"
13 )]
14 #[derive(Debug, Clone, PartialEq, Eq)]
15 #[doc = "The `BluetoothRemoteGattCharacteristic` class."]
16 #[doc = ""]
17 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTCharacteristic)"]
18 #[doc = ""]
19 #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattCharacteristic`*"]
20 #[doc = ""]
21 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
22 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
23 pub type BluetoothRemoteGattCharacteristic;
24 #[cfg(web_sys_unstable_apis)]
25 #[cfg(feature = "BluetoothRemoteGattService")]
26 #[wasm_bindgen(
27 method,
28 getter,
29 js_class = "BluetoothRemoteGATTCharacteristic",
30 js_name = "service"
31 )]
32 #[doc = "Getter for the `service` field of this object."]
33 #[doc = ""]
34 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTCharacteristic/service)"]
35 #[doc = ""]
36 #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattCharacteristic`, `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
40 pub fn service(this: &BluetoothRemoteGattCharacteristic) -> BluetoothRemoteGattService;
41 #[cfg(web_sys_unstable_apis)]
42 #[wasm_bindgen(
43 method,
44 getter,
45 js_class = "BluetoothRemoteGATTCharacteristic",
46 js_name = "uuid"
47 )]
48 #[doc = "Getter for the `uuid` field of this object."]
49 #[doc = ""]
50 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTCharacteristic/uuid)"]
51 #[doc = ""]
52 #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattCharacteristic`*"]
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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
56 pub fn uuid(this: &BluetoothRemoteGattCharacteristic) -> ::alloc::string::String;
57 #[cfg(web_sys_unstable_apis)]
58 #[cfg(feature = "BluetoothCharacteristicProperties")]
59 #[wasm_bindgen(
60 method,
61 getter,
62 js_class = "BluetoothRemoteGATTCharacteristic",
63 js_name = "properties"
64 )]
65 #[doc = "Getter for the `properties` field of this object."]
66 #[doc = ""]
67 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTCharacteristic/properties)"]
68 #[doc = ""]
69 #[doc = "*This API requires the following crate features to be activated: `BluetoothCharacteristicProperties`, `BluetoothRemoteGattCharacteristic`*"]
70 #[doc = ""]
71 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
72 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
73 pub fn properties(
74 this: &BluetoothRemoteGattCharacteristic,
75 ) -> BluetoothCharacteristicProperties;
76 #[cfg(web_sys_unstable_apis)]
77 #[wasm_bindgen(
78 method,
79 getter,
80 js_class = "BluetoothRemoteGATTCharacteristic",
81 js_name = "value"
82 )]
83 #[doc = "Getter for the `value` field of this object."]
84 #[doc = ""]
85 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTCharacteristic/value)"]
86 #[doc = ""]
87 #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattCharacteristic`*"]
88 #[doc = ""]
89 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
90 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
91 pub fn value(this: &BluetoothRemoteGattCharacteristic) -> Option<::js_sys::DataView>;
92 #[cfg(web_sys_unstable_apis)]
93 #[wasm_bindgen(
94 method,
95 getter,
96 js_class = "BluetoothRemoteGATTCharacteristic",
97 js_name = "oncharacteristicvaluechanged"
98 )]
99 #[doc = "Getter for the `oncharacteristicvaluechanged` field of this object."]
100 #[doc = ""]
101 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTCharacteristic/oncharacteristicvaluechanged)"]
102 #[doc = ""]
103 #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattCharacteristic`*"]
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 oncharacteristicvaluechanged(
108 this: &BluetoothRemoteGattCharacteristic,
109 ) -> Option<::js_sys::Function>;
110 #[cfg(web_sys_unstable_apis)]
111 #[wasm_bindgen(
112 method,
113 setter,
114 js_class = "BluetoothRemoteGATTCharacteristic",
115 js_name = "oncharacteristicvaluechanged"
116 )]
117 #[doc = "Setter for the `oncharacteristicvaluechanged` field of this object."]
118 #[doc = ""]
119 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTCharacteristic/oncharacteristicvaluechanged)"]
120 #[doc = ""]
121 #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattCharacteristic`*"]
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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
125 pub fn set_oncharacteristicvaluechanged(
126 this: &BluetoothRemoteGattCharacteristic,
127 value: Option<&::js_sys::Function>,
128 );
129 #[cfg(web_sys_unstable_apis)]
130 #[cfg(feature = "BluetoothRemoteGattDescriptor")]
131 #[wasm_bindgen(
132 method,
133 js_class = "BluetoothRemoteGATTCharacteristic",
134 js_name = "getDescriptor"
135 )]
136 #[doc = "The `getDescriptor()` method."]
137 #[doc = ""]
138 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTCharacteristic/getDescriptor)"]
139 #[doc = ""]
140 #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattCharacteristic`, `BluetoothRemoteGattDescriptor`*"]
141 #[doc = ""]
142 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
143 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
144 pub fn get_descriptor_with_str(
145 this: &BluetoothRemoteGattCharacteristic,
146 descriptor: &str,
147 ) -> ::js_sys::Promise<BluetoothRemoteGattDescriptor>;
148 #[cfg(web_sys_unstable_apis)]
149 #[cfg(feature = "BluetoothRemoteGattDescriptor")]
150 #[wasm_bindgen(
151 method,
152 js_class = "BluetoothRemoteGATTCharacteristic",
153 js_name = "getDescriptor"
154 )]
155 #[doc = "The `getDescriptor()` method."]
156 #[doc = ""]
157 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTCharacteristic/getDescriptor)"]
158 #[doc = ""]
159 #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattCharacteristic`, `BluetoothRemoteGattDescriptor`*"]
160 #[doc = ""]
161 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
162 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
163 pub fn get_descriptor_with_u32(
164 this: &BluetoothRemoteGattCharacteristic,
165 descriptor: u32,
166 ) -> ::js_sys::Promise<BluetoothRemoteGattDescriptor>;
167 #[cfg(web_sys_unstable_apis)]
168 #[cfg(feature = "BluetoothRemoteGattDescriptor")]
169 #[wasm_bindgen(
170 method,
171 js_class = "BluetoothRemoteGATTCharacteristic",
172 js_name = "getDescriptors"
173 )]
174 #[doc = "The `getDescriptors()` method."]
175 #[doc = ""]
176 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTCharacteristic/getDescriptors)"]
177 #[doc = ""]
178 #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattCharacteristic`, `BluetoothRemoteGattDescriptor`*"]
179 #[doc = ""]
180 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
181 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
182 pub fn get_descriptors(
183 this: &BluetoothRemoteGattCharacteristic,
184 ) -> ::js_sys::Promise<::js_sys::Array<BluetoothRemoteGattDescriptor>>;
185 #[cfg(web_sys_unstable_apis)]
186 #[cfg(feature = "BluetoothRemoteGattDescriptor")]
187 #[wasm_bindgen(
188 method,
189 js_class = "BluetoothRemoteGATTCharacteristic",
190 js_name = "getDescriptors"
191 )]
192 #[doc = "The `getDescriptors()` method."]
193 #[doc = ""]
194 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTCharacteristic/getDescriptors)"]
195 #[doc = ""]
196 #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattCharacteristic`, `BluetoothRemoteGattDescriptor`*"]
197 #[doc = ""]
198 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
199 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
200 pub fn get_descriptors_with_str(
201 this: &BluetoothRemoteGattCharacteristic,
202 descriptor: &str,
203 ) -> ::js_sys::Promise<::js_sys::Array<BluetoothRemoteGattDescriptor>>;
204 #[cfg(web_sys_unstable_apis)]
205 #[cfg(feature = "BluetoothRemoteGattDescriptor")]
206 #[wasm_bindgen(
207 method,
208 js_class = "BluetoothRemoteGATTCharacteristic",
209 js_name = "getDescriptors"
210 )]
211 #[doc = "The `getDescriptors()` method."]
212 #[doc = ""]
213 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTCharacteristic/getDescriptors)"]
214 #[doc = ""]
215 #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattCharacteristic`, `BluetoothRemoteGattDescriptor`*"]
216 #[doc = ""]
217 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
218 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
219 pub fn get_descriptors_with_u32(
220 this: &BluetoothRemoteGattCharacteristic,
221 descriptor: u32,
222 ) -> ::js_sys::Promise<::js_sys::Array<BluetoothRemoteGattDescriptor>>;
223 #[cfg(web_sys_unstable_apis)]
224 #[wasm_bindgen(
225 method,
226 js_class = "BluetoothRemoteGATTCharacteristic",
227 js_name = "readValue"
228 )]
229 #[doc = "The `readValue()` method."]
230 #[doc = ""]
231 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTCharacteristic/readValue)"]
232 #[doc = ""]
233 #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattCharacteristic`*"]
234 #[doc = ""]
235 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
236 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
237 pub fn read_value(
238 this: &BluetoothRemoteGattCharacteristic,
239 ) -> ::js_sys::Promise<::js_sys::DataView>;
240 #[cfg(web_sys_unstable_apis)]
241 #[wasm_bindgen(
242 method,
243 js_class = "BluetoothRemoteGATTCharacteristic",
244 js_name = "startNotifications"
245 )]
246 #[doc = "The `startNotifications()` method."]
247 #[doc = ""]
248 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTCharacteristic/startNotifications)"]
249 #[doc = ""]
250 #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattCharacteristic`*"]
251 #[doc = ""]
252 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
253 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
254 pub fn start_notifications(
255 this: &BluetoothRemoteGattCharacteristic,
256 ) -> ::js_sys::Promise<BluetoothRemoteGattCharacteristic>;
257 #[cfg(web_sys_unstable_apis)]
258 #[wasm_bindgen(
259 method,
260 js_class = "BluetoothRemoteGATTCharacteristic",
261 js_name = "stopNotifications"
262 )]
263 #[doc = "The `stopNotifications()` method."]
264 #[doc = ""]
265 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTCharacteristic/stopNotifications)"]
266 #[doc = ""]
267 #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattCharacteristic`*"]
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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
271 pub fn stop_notifications(
272 this: &BluetoothRemoteGattCharacteristic,
273 ) -> ::js_sys::Promise<BluetoothRemoteGattCharacteristic>;
274 #[cfg(web_sys_unstable_apis)]
275 #[wasm_bindgen(
276 catch,
277 method,
278 js_class = "BluetoothRemoteGATTCharacteristic",
279 js_name = "writeValue"
280 )]
281 #[doc = "The `writeValue()` method."]
282 #[doc = ""]
283 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTCharacteristic/writeValue)"]
284 #[doc = ""]
285 #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattCharacteristic`*"]
286 #[doc = ""]
287 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
288 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
289 pub fn write_value_with_buffer_source(
290 this: &BluetoothRemoteGattCharacteristic,
291 value: &::js_sys::Object,
292 ) -> Result<::js_sys::Promise<::js_sys::Undefined>, JsValue>;
293 #[cfg(web_sys_unstable_apis)]
294 #[wasm_bindgen(
295 catch,
296 method,
297 js_class = "BluetoothRemoteGATTCharacteristic",
298 js_name = "writeValue"
299 )]
300 #[doc = "The `writeValue()` method."]
301 #[doc = ""]
302 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTCharacteristic/writeValue)"]
303 #[doc = ""]
304 #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattCharacteristic`*"]
305 #[doc = ""]
306 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
307 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
308 pub fn write_value_with_u8_slice(
309 this: &BluetoothRemoteGattCharacteristic,
310 value: &mut [u8],
311 ) -> Result<::js_sys::Promise<::js_sys::Undefined>, JsValue>;
312 #[cfg(web_sys_unstable_apis)]
313 #[wasm_bindgen(
314 catch,
315 method,
316 js_class = "BluetoothRemoteGATTCharacteristic",
317 js_name = "writeValue"
318 )]
319 #[doc = "The `writeValue()` method."]
320 #[doc = ""]
321 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTCharacteristic/writeValue)"]
322 #[doc = ""]
323 #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattCharacteristic`*"]
324 #[doc = ""]
325 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
326 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
327 pub fn write_value_with_u8_array(
328 this: &BluetoothRemoteGattCharacteristic,
329 value: &::js_sys::Uint8Array,
330 ) -> Result<::js_sys::Promise<::js_sys::Undefined>, JsValue>;
331 #[cfg(web_sys_unstable_apis)]
332 #[wasm_bindgen(
333 catch,
334 method,
335 js_class = "BluetoothRemoteGATTCharacteristic",
336 js_name = "writeValueWithResponse"
337 )]
338 #[doc = "The `writeValueWithResponse()` method."]
339 #[doc = ""]
340 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTCharacteristic/writeValueWithResponse)"]
341 #[doc = ""]
342 #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattCharacteristic`*"]
343 #[doc = ""]
344 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
345 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
346 pub fn write_value_with_response_with_buffer_source(
347 this: &BluetoothRemoteGattCharacteristic,
348 value: &::js_sys::Object,
349 ) -> Result<::js_sys::Promise<::js_sys::Undefined>, JsValue>;
350 #[cfg(web_sys_unstable_apis)]
351 #[wasm_bindgen(
352 catch,
353 method,
354 js_class = "BluetoothRemoteGATTCharacteristic",
355 js_name = "writeValueWithResponse"
356 )]
357 #[doc = "The `writeValueWithResponse()` method."]
358 #[doc = ""]
359 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTCharacteristic/writeValueWithResponse)"]
360 #[doc = ""]
361 #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattCharacteristic`*"]
362 #[doc = ""]
363 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
364 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
365 pub fn write_value_with_response_with_u8_slice(
366 this: &BluetoothRemoteGattCharacteristic,
367 value: &mut [u8],
368 ) -> Result<::js_sys::Promise<::js_sys::Undefined>, JsValue>;
369 #[cfg(web_sys_unstable_apis)]
370 #[wasm_bindgen(
371 catch,
372 method,
373 js_class = "BluetoothRemoteGATTCharacteristic",
374 js_name = "writeValueWithResponse"
375 )]
376 #[doc = "The `writeValueWithResponse()` method."]
377 #[doc = ""]
378 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTCharacteristic/writeValueWithResponse)"]
379 #[doc = ""]
380 #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattCharacteristic`*"]
381 #[doc = ""]
382 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
383 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
384 pub fn write_value_with_response_with_u8_array(
385 this: &BluetoothRemoteGattCharacteristic,
386 value: &::js_sys::Uint8Array,
387 ) -> Result<::js_sys::Promise<::js_sys::Undefined>, JsValue>;
388 #[cfg(web_sys_unstable_apis)]
389 #[wasm_bindgen(
390 catch,
391 method,
392 js_class = "BluetoothRemoteGATTCharacteristic",
393 js_name = "writeValueWithoutResponse"
394 )]
395 #[doc = "The `writeValueWithoutResponse()` method."]
396 #[doc = ""]
397 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTCharacteristic/writeValueWithoutResponse)"]
398 #[doc = ""]
399 #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattCharacteristic`*"]
400 #[doc = ""]
401 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
402 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
403 pub fn write_value_without_response_with_buffer_source(
404 this: &BluetoothRemoteGattCharacteristic,
405 value: &::js_sys::Object,
406 ) -> Result<::js_sys::Promise<::js_sys::Undefined>, JsValue>;
407 #[cfg(web_sys_unstable_apis)]
408 #[wasm_bindgen(
409 catch,
410 method,
411 js_class = "BluetoothRemoteGATTCharacteristic",
412 js_name = "writeValueWithoutResponse"
413 )]
414 #[doc = "The `writeValueWithoutResponse()` method."]
415 #[doc = ""]
416 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTCharacteristic/writeValueWithoutResponse)"]
417 #[doc = ""]
418 #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattCharacteristic`*"]
419 #[doc = ""]
420 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
421 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
422 pub fn write_value_without_response_with_u8_slice(
423 this: &BluetoothRemoteGattCharacteristic,
424 value: &mut [u8],
425 ) -> Result<::js_sys::Promise<::js_sys::Undefined>, JsValue>;
426 #[cfg(web_sys_unstable_apis)]
427 #[wasm_bindgen(
428 catch,
429 method,
430 js_class = "BluetoothRemoteGATTCharacteristic",
431 js_name = "writeValueWithoutResponse"
432 )]
433 #[doc = "The `writeValueWithoutResponse()` method."]
434 #[doc = ""]
435 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTCharacteristic/writeValueWithoutResponse)"]
436 #[doc = ""]
437 #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattCharacteristic`*"]
438 #[doc = ""]
439 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
440 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
441 pub fn write_value_without_response_with_u8_array(
442 this: &BluetoothRemoteGattCharacteristic,
443 value: &::js_sys::Uint8Array,
444 ) -> Result<::js_sys::Promise<::js_sys::Undefined>, JsValue>;
445}