web_sys/features/
gen_BluetoothRemoteGattDescriptor.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 = :: js_sys :: Object , js_name = BluetoothRemoteGATTDescriptor , typescript_type = "BluetoothRemoteGATTDescriptor")]
9    #[derive(Debug, Clone, PartialEq, Eq)]
10    #[doc = "The `BluetoothRemoteGattDescriptor` class."]
11    #[doc = ""]
12    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTDescriptor)"]
13    #[doc = ""]
14    #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattDescriptor`*"]
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 BluetoothRemoteGattDescriptor;
19    #[cfg(web_sys_unstable_apis)]
20    #[cfg(feature = "BluetoothRemoteGattCharacteristic")]
21    # [wasm_bindgen (structural , method , getter , js_class = "BluetoothRemoteGATTDescriptor" , js_name = characteristic)]
22    #[doc = "Getter for the `characteristic` field of this object."]
23    #[doc = ""]
24    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTDescriptor/characteristic)"]
25    #[doc = ""]
26    #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattCharacteristic`, `BluetoothRemoteGattDescriptor`*"]
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 characteristic(
31        this: &BluetoothRemoteGattDescriptor,
32    ) -> BluetoothRemoteGattCharacteristic;
33    #[cfg(web_sys_unstable_apis)]
34    # [wasm_bindgen (structural , method , getter , js_class = "BluetoothRemoteGATTDescriptor" , js_name = uuid)]
35    #[doc = "Getter for the `uuid` field of this object."]
36    #[doc = ""]
37    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTDescriptor/uuid)"]
38    #[doc = ""]
39    #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattDescriptor`*"]
40    #[doc = ""]
41    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
42    #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
43    pub fn uuid(this: &BluetoothRemoteGattDescriptor) -> ::alloc::string::String;
44    #[cfg(web_sys_unstable_apis)]
45    # [wasm_bindgen (structural , method , getter , js_class = "BluetoothRemoteGATTDescriptor" , js_name = value)]
46    #[doc = "Getter for the `value` field of this object."]
47    #[doc = ""]
48    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTDescriptor/value)"]
49    #[doc = ""]
50    #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattDescriptor`*"]
51    #[doc = ""]
52    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
53    #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
54    pub fn value(this: &BluetoothRemoteGattDescriptor) -> Option<::js_sys::DataView>;
55    #[cfg(web_sys_unstable_apis)]
56    # [wasm_bindgen (method , structural , js_class = "BluetoothRemoteGATTDescriptor" , js_name = readValue)]
57    #[doc = "The `readValue()` method."]
58    #[doc = ""]
59    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTDescriptor/readValue)"]
60    #[doc = ""]
61    #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattDescriptor`*"]
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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
65    pub fn read_value(this: &BluetoothRemoteGattDescriptor) -> ::js_sys::Promise;
66    #[cfg(web_sys_unstable_apis)]
67    # [wasm_bindgen (catch , method , structural , js_class = "BluetoothRemoteGATTDescriptor" , js_name = writeValue)]
68    #[doc = "The `writeValue()` method."]
69    #[doc = ""]
70    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTDescriptor/writeValue)"]
71    #[doc = ""]
72    #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattDescriptor`*"]
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 write_value_with_buffer_source(
77        this: &BluetoothRemoteGattDescriptor,
78        value: &::js_sys::Object,
79    ) -> Result<::js_sys::Promise, JsValue>;
80    #[cfg(web_sys_unstable_apis)]
81    # [wasm_bindgen (catch , method , structural , js_class = "BluetoothRemoteGATTDescriptor" , js_name = writeValue)]
82    #[doc = "The `writeValue()` method."]
83    #[doc = ""]
84    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTDescriptor/writeValue)"]
85    #[doc = ""]
86    #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattDescriptor`*"]
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 write_value_with_u8_slice(
91        this: &BluetoothRemoteGattDescriptor,
92        value: &mut [u8],
93    ) -> Result<::js_sys::Promise, JsValue>;
94    #[cfg(web_sys_unstable_apis)]
95    # [wasm_bindgen (catch , method , structural , js_class = "BluetoothRemoteGATTDescriptor" , js_name = writeValue)]
96    #[doc = "The `writeValue()` method."]
97    #[doc = ""]
98    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTDescriptor/writeValue)"]
99    #[doc = ""]
100    #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattDescriptor`*"]
101    #[doc = ""]
102    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
103    #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
104    pub fn write_value_with_u8_array(
105        this: &BluetoothRemoteGattDescriptor,
106        value: &::js_sys::Uint8Array,
107    ) -> Result<::js_sys::Promise, JsValue>;
108}