web_sys/features/
gen_BluetoothRemoteGattDescriptor.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(
9 extends = "::js_sys::Object",
10 js_name = "BluetoothRemoteGATTDescriptor",
11 typescript_type = "BluetoothRemoteGATTDescriptor"
12 )]
13 #[derive(Debug, Clone, PartialEq, Eq)]
14 #[doc = "The `BluetoothRemoteGattDescriptor` class."]
15 #[doc = ""]
16 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTDescriptor)"]
17 #[doc = ""]
18 #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattDescriptor`*"]
19 #[doc = ""]
20 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
21 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
22 pub type BluetoothRemoteGattDescriptor;
23 #[cfg(web_sys_unstable_apis)]
24 #[cfg(feature = "BluetoothRemoteGattCharacteristic")]
25 #[wasm_bindgen(
26 method,
27 getter,
28 js_class = "BluetoothRemoteGATTDescriptor",
29 js_name = "characteristic"
30 )]
31 #[doc = "Getter for the `characteristic` field of this object."]
32 #[doc = ""]
33 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTDescriptor/characteristic)"]
34 #[doc = ""]
35 #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattCharacteristic`, `BluetoothRemoteGattDescriptor`*"]
36 #[doc = ""]
37 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
38 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
39 pub fn characteristic(
40 this: &BluetoothRemoteGattDescriptor,
41 ) -> BluetoothRemoteGattCharacteristic;
42 #[cfg(web_sys_unstable_apis)]
43 #[wasm_bindgen(
44 method,
45 getter,
46 js_class = "BluetoothRemoteGATTDescriptor",
47 js_name = "uuid"
48 )]
49 #[doc = "Getter for the `uuid` field of this object."]
50 #[doc = ""]
51 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTDescriptor/uuid)"]
52 #[doc = ""]
53 #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattDescriptor`*"]
54 #[doc = ""]
55 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
56 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
57 pub fn uuid(this: &BluetoothRemoteGattDescriptor) -> ::alloc::string::String;
58 #[cfg(web_sys_unstable_apis)]
59 #[wasm_bindgen(
60 method,
61 getter,
62 js_class = "BluetoothRemoteGATTDescriptor",
63 js_name = "value"
64 )]
65 #[doc = "Getter for the `value` field of this object."]
66 #[doc = ""]
67 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTDescriptor/value)"]
68 #[doc = ""]
69 #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattDescriptor`*"]
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 value(this: &BluetoothRemoteGattDescriptor) -> Option<::js_sys::DataView>;
74 #[cfg(web_sys_unstable_apis)]
75 #[wasm_bindgen(
76 method,
77 js_class = "BluetoothRemoteGATTDescriptor",
78 js_name = "readValue"
79 )]
80 #[doc = "The `readValue()` method."]
81 #[doc = ""]
82 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTDescriptor/readValue)"]
83 #[doc = ""]
84 #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattDescriptor`*"]
85 #[doc = ""]
86 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
87 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
88 pub fn read_value(
89 this: &BluetoothRemoteGattDescriptor,
90 ) -> ::js_sys::Promise<::js_sys::DataView>;
91 #[cfg(web_sys_unstable_apis)]
92 #[wasm_bindgen(
93 catch,
94 method,
95 js_class = "BluetoothRemoteGATTDescriptor",
96 js_name = "writeValue"
97 )]
98 #[doc = "The `writeValue()` method."]
99 #[doc = ""]
100 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTDescriptor/writeValue)"]
101 #[doc = ""]
102 #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattDescriptor`*"]
103 #[doc = ""]
104 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
105 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
106 pub fn write_value_with_buffer_source(
107 this: &BluetoothRemoteGattDescriptor,
108 value: &::js_sys::Object,
109 ) -> Result<::js_sys::Promise<::js_sys::Undefined>, JsValue>;
110 #[cfg(web_sys_unstable_apis)]
111 #[wasm_bindgen(
112 catch,
113 method,
114 js_class = "BluetoothRemoteGATTDescriptor",
115 js_name = "writeValue"
116 )]
117 #[doc = "The `writeValue()` method."]
118 #[doc = ""]
119 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTDescriptor/writeValue)"]
120 #[doc = ""]
121 #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattDescriptor`*"]
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 write_value_with_u8_slice(
126 this: &BluetoothRemoteGattDescriptor,
127 value: &mut [u8],
128 ) -> Result<::js_sys::Promise<::js_sys::Undefined>, JsValue>;
129 #[cfg(web_sys_unstable_apis)]
130 #[wasm_bindgen(
131 catch,
132 method,
133 js_class = "BluetoothRemoteGATTDescriptor",
134 js_name = "writeValue"
135 )]
136 #[doc = "The `writeValue()` method."]
137 #[doc = ""]
138 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTDescriptor/writeValue)"]
139 #[doc = ""]
140 #[doc = "*This API requires the following crate features to be activated: `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 write_value_with_u8_array(
145 this: &BluetoothRemoteGattDescriptor,
146 value: &::js_sys::Uint8Array,
147 ) -> Result<::js_sys::Promise<::js_sys::Undefined>, JsValue>;
148}