1 #![allow(unused_imports)]
2 use super::*;
3 use wasm_bindgen::prelude::*;
4 #[cfg(web_sys_unstable_apis)]
5 #[wasm_bindgen]
6 extern "C" {
7     # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = BluetoothRemoteGATTCharacteristic , typescript_type = "BluetoothRemoteGATTCharacteristic")]
8     #[derive(Debug, Clone, PartialEq, Eq)]
9     #[doc = "The `BluetoothRemoteGattCharacteristic` class."]
10     #[doc = ""]
11     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTCharacteristic)"]
12     #[doc = ""]
13     #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattCharacteristic`*"]
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 BluetoothRemoteGattCharacteristic;
18     #[cfg(web_sys_unstable_apis)]
19     #[cfg(feature = "BluetoothRemoteGattService")]
20     # [wasm_bindgen (structural , method , getter , js_class = "BluetoothRemoteGATTCharacteristic" , js_name = service)]
21     #[doc = "Getter for the `service` field of this object."]
22     #[doc = ""]
23     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTCharacteristic/service)"]
24     #[doc = ""]
25     #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattCharacteristic`, `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)*"]
service(this: &BluetoothRemoteGattCharacteristic) -> BluetoothRemoteGattService29     pub fn service(this: &BluetoothRemoteGattCharacteristic) -> BluetoothRemoteGattService;
30     #[cfg(web_sys_unstable_apis)]
31     # [wasm_bindgen (structural , method , getter , js_class = "BluetoothRemoteGATTCharacteristic" , 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/BluetoothRemoteGATTCharacteristic/uuid)"]
35     #[doc = ""]
36     #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattCharacteristic`*"]
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)*"]
uuid(this: &BluetoothRemoteGattCharacteristic) -> String40     pub fn uuid(this: &BluetoothRemoteGattCharacteristic) -> String;
41     #[cfg(web_sys_unstable_apis)]
42     #[cfg(feature = "BluetoothCharacteristicProperties")]
43     # [wasm_bindgen (structural , method , getter , js_class = "BluetoothRemoteGATTCharacteristic" , js_name = properties)]
44     #[doc = "Getter for the `properties` field of this object."]
45     #[doc = ""]
46     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTCharacteristic/properties)"]
47     #[doc = ""]
48     #[doc = "*This API requires the following crate features to be activated: `BluetoothCharacteristicProperties`, `BluetoothRemoteGattCharacteristic`*"]
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)*"]
properties( this: &BluetoothRemoteGattCharacteristic, ) -> BluetoothCharacteristicProperties52     pub fn properties(
53         this: &BluetoothRemoteGattCharacteristic,
54     ) -> BluetoothCharacteristicProperties;
55     #[cfg(web_sys_unstable_apis)]
56     # [wasm_bindgen (structural , method , getter , js_class = "BluetoothRemoteGATTCharacteristic" , js_name = value)]
57     #[doc = "Getter for the `value` field of this object."]
58     #[doc = ""]
59     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTCharacteristic/value)"]
60     #[doc = ""]
61     #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattCharacteristic`*"]
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)*"]
value(this: &BluetoothRemoteGattCharacteristic) -> Option<::js_sys::DataView>65     pub fn value(this: &BluetoothRemoteGattCharacteristic) -> Option<::js_sys::DataView>;
66     #[cfg(web_sys_unstable_apis)]
67     # [wasm_bindgen (structural , method , getter , js_class = "BluetoothRemoteGATTCharacteristic" , js_name = oncharacteristicvaluechanged)]
68     #[doc = "Getter for the `oncharacteristicvaluechanged` field of this object."]
69     #[doc = ""]
70     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTCharacteristic/oncharacteristicvaluechanged)"]
71     #[doc = ""]
72     #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattCharacteristic`*"]
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)*"]
oncharacteristicvaluechanged( this: &BluetoothRemoteGattCharacteristic, ) -> Option<::js_sys::Function>76     pub fn oncharacteristicvaluechanged(
77         this: &BluetoothRemoteGattCharacteristic,
78     ) -> Option<::js_sys::Function>;
79     #[cfg(web_sys_unstable_apis)]
80     # [wasm_bindgen (structural , method , setter , js_class = "BluetoothRemoteGATTCharacteristic" , js_name = oncharacteristicvaluechanged)]
81     #[doc = "Setter for the `oncharacteristicvaluechanged` field of this object."]
82     #[doc = ""]
83     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTCharacteristic/oncharacteristicvaluechanged)"]
84     #[doc = ""]
85     #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattCharacteristic`*"]
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)*"]
set_oncharacteristicvaluechanged( this: &BluetoothRemoteGattCharacteristic, value: Option<&::js_sys::Function>, )89     pub fn set_oncharacteristicvaluechanged(
90         this: &BluetoothRemoteGattCharacteristic,
91         value: Option<&::js_sys::Function>,
92     );
93     #[cfg(web_sys_unstable_apis)]
94     # [wasm_bindgen (method , structural , js_class = "BluetoothRemoteGATTCharacteristic" , js_name = getDescriptor)]
95     #[doc = "The `getDescriptor()` method."]
96     #[doc = ""]
97     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTCharacteristic/getDescriptor)"]
98     #[doc = ""]
99     #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattCharacteristic`*"]
100     #[doc = ""]
101     #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
102     #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
get_descriptor_with_str( this: &BluetoothRemoteGattCharacteristic, descriptor: &str, ) -> ::js_sys::Promise103     pub fn get_descriptor_with_str(
104         this: &BluetoothRemoteGattCharacteristic,
105         descriptor: &str,
106     ) -> ::js_sys::Promise;
107     #[cfg(web_sys_unstable_apis)]
108     # [wasm_bindgen (method , structural , js_class = "BluetoothRemoteGATTCharacteristic" , js_name = getDescriptor)]
109     #[doc = "The `getDescriptor()` method."]
110     #[doc = ""]
111     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTCharacteristic/getDescriptor)"]
112     #[doc = ""]
113     #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattCharacteristic`*"]
114     #[doc = ""]
115     #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
116     #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
get_descriptor_with_u32( this: &BluetoothRemoteGattCharacteristic, descriptor: u32, ) -> ::js_sys::Promise117     pub fn get_descriptor_with_u32(
118         this: &BluetoothRemoteGattCharacteristic,
119         descriptor: u32,
120     ) -> ::js_sys::Promise;
121     #[cfg(web_sys_unstable_apis)]
122     # [wasm_bindgen (method , structural , js_class = "BluetoothRemoteGATTCharacteristic" , js_name = getDescriptors)]
123     #[doc = "The `getDescriptors()` method."]
124     #[doc = ""]
125     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTCharacteristic/getDescriptors)"]
126     #[doc = ""]
127     #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattCharacteristic`*"]
128     #[doc = ""]
129     #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
130     #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
get_descriptors(this: &BluetoothRemoteGattCharacteristic) -> ::js_sys::Promise131     pub fn get_descriptors(this: &BluetoothRemoteGattCharacteristic) -> ::js_sys::Promise;
132     #[cfg(web_sys_unstable_apis)]
133     # [wasm_bindgen (method , structural , js_class = "BluetoothRemoteGATTCharacteristic" , js_name = getDescriptors)]
134     #[doc = "The `getDescriptors()` method."]
135     #[doc = ""]
136     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTCharacteristic/getDescriptors)"]
137     #[doc = ""]
138     #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattCharacteristic`*"]
139     #[doc = ""]
140     #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
141     #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
get_descriptors_with_str( this: &BluetoothRemoteGattCharacteristic, descriptor: &str, ) -> ::js_sys::Promise142     pub fn get_descriptors_with_str(
143         this: &BluetoothRemoteGattCharacteristic,
144         descriptor: &str,
145     ) -> ::js_sys::Promise;
146     #[cfg(web_sys_unstable_apis)]
147     # [wasm_bindgen (method , structural , js_class = "BluetoothRemoteGATTCharacteristic" , js_name = getDescriptors)]
148     #[doc = "The `getDescriptors()` method."]
149     #[doc = ""]
150     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTCharacteristic/getDescriptors)"]
151     #[doc = ""]
152     #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattCharacteristic`*"]
153     #[doc = ""]
154     #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
155     #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
get_descriptors_with_u32( this: &BluetoothRemoteGattCharacteristic, descriptor: u32, ) -> ::js_sys::Promise156     pub fn get_descriptors_with_u32(
157         this: &BluetoothRemoteGattCharacteristic,
158         descriptor: u32,
159     ) -> ::js_sys::Promise;
160     #[cfg(web_sys_unstable_apis)]
161     # [wasm_bindgen (method , structural , js_class = "BluetoothRemoteGATTCharacteristic" , js_name = readValue)]
162     #[doc = "The `readValue()` method."]
163     #[doc = ""]
164     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTCharacteristic/readValue)"]
165     #[doc = ""]
166     #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattCharacteristic`*"]
167     #[doc = ""]
168     #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
169     #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
read_value(this: &BluetoothRemoteGattCharacteristic) -> ::js_sys::Promise170     pub fn read_value(this: &BluetoothRemoteGattCharacteristic) -> ::js_sys::Promise;
171     #[cfg(web_sys_unstable_apis)]
172     # [wasm_bindgen (method , structural , js_class = "BluetoothRemoteGATTCharacteristic" , js_name = startNotifications)]
173     #[doc = "The `startNotifications()` method."]
174     #[doc = ""]
175     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTCharacteristic/startNotifications)"]
176     #[doc = ""]
177     #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattCharacteristic`*"]
178     #[doc = ""]
179     #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
180     #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
start_notifications(this: &BluetoothRemoteGattCharacteristic) -> ::js_sys::Promise181     pub fn start_notifications(this: &BluetoothRemoteGattCharacteristic) -> ::js_sys::Promise;
182     #[cfg(web_sys_unstable_apis)]
183     # [wasm_bindgen (method , structural , js_class = "BluetoothRemoteGATTCharacteristic" , js_name = stopNotifications)]
184     #[doc = "The `stopNotifications()` method."]
185     #[doc = ""]
186     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTCharacteristic/stopNotifications)"]
187     #[doc = ""]
188     #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattCharacteristic`*"]
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)*"]
stop_notifications(this: &BluetoothRemoteGattCharacteristic) -> ::js_sys::Promise192     pub fn stop_notifications(this: &BluetoothRemoteGattCharacteristic) -> ::js_sys::Promise;
193     #[cfg(web_sys_unstable_apis)]
194     # [wasm_bindgen (method , structural , js_class = "BluetoothRemoteGATTCharacteristic" , js_name = writeValue)]
195     #[doc = "The `writeValue()` method."]
196     #[doc = ""]
197     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTCharacteristic/writeValue)"]
198     #[doc = ""]
199     #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattCharacteristic`*"]
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)*"]
write_value_with_buffer_source( this: &BluetoothRemoteGattCharacteristic, value: &::js_sys::Object, ) -> ::js_sys::Promise203     pub fn write_value_with_buffer_source(
204         this: &BluetoothRemoteGattCharacteristic,
205         value: &::js_sys::Object,
206     ) -> ::js_sys::Promise;
207     #[cfg(web_sys_unstable_apis)]
208     # [wasm_bindgen (method , structural , js_class = "BluetoothRemoteGATTCharacteristic" , js_name = writeValue)]
209     #[doc = "The `writeValue()` method."]
210     #[doc = ""]
211     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTCharacteristic/writeValue)"]
212     #[doc = ""]
213     #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattCharacteristic`*"]
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)*"]
write_value_with_u8_array( this: &BluetoothRemoteGattCharacteristic, value: &mut [u8], ) -> ::js_sys::Promise217     pub fn write_value_with_u8_array(
218         this: &BluetoothRemoteGattCharacteristic,
219         value: &mut [u8],
220     ) -> ::js_sys::Promise;
221     #[cfg(web_sys_unstable_apis)]
222     # [wasm_bindgen (method , structural , js_class = "BluetoothRemoteGATTCharacteristic" , js_name = writeValueWithResponse)]
223     #[doc = "The `writeValueWithResponse()` method."]
224     #[doc = ""]
225     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTCharacteristic/writeValueWithResponse)"]
226     #[doc = ""]
227     #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattCharacteristic`*"]
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)*"]
write_value_with_response_with_buffer_source( this: &BluetoothRemoteGattCharacteristic, value: &::js_sys::Object, ) -> ::js_sys::Promise231     pub fn write_value_with_response_with_buffer_source(
232         this: &BluetoothRemoteGattCharacteristic,
233         value: &::js_sys::Object,
234     ) -> ::js_sys::Promise;
235     #[cfg(web_sys_unstable_apis)]
236     # [wasm_bindgen (method , structural , js_class = "BluetoothRemoteGATTCharacteristic" , js_name = writeValueWithResponse)]
237     #[doc = "The `writeValueWithResponse()` method."]
238     #[doc = ""]
239     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTCharacteristic/writeValueWithResponse)"]
240     #[doc = ""]
241     #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattCharacteristic`*"]
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)*"]
write_value_with_response_with_u8_array( this: &BluetoothRemoteGattCharacteristic, value: &mut [u8], ) -> ::js_sys::Promise245     pub fn write_value_with_response_with_u8_array(
246         this: &BluetoothRemoteGattCharacteristic,
247         value: &mut [u8],
248     ) -> ::js_sys::Promise;
249     #[cfg(web_sys_unstable_apis)]
250     # [wasm_bindgen (method , structural , js_class = "BluetoothRemoteGATTCharacteristic" , js_name = writeValueWithoutResponse)]
251     #[doc = "The `writeValueWithoutResponse()` method."]
252     #[doc = ""]
253     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTCharacteristic/writeValueWithoutResponse)"]
254     #[doc = ""]
255     #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattCharacteristic`*"]
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)*"]
write_value_without_response_with_buffer_source( this: &BluetoothRemoteGattCharacteristic, value: &::js_sys::Object, ) -> ::js_sys::Promise259     pub fn write_value_without_response_with_buffer_source(
260         this: &BluetoothRemoteGattCharacteristic,
261         value: &::js_sys::Object,
262     ) -> ::js_sys::Promise;
263     #[cfg(web_sys_unstable_apis)]
264     # [wasm_bindgen (method , structural , js_class = "BluetoothRemoteGATTCharacteristic" , js_name = writeValueWithoutResponse)]
265     #[doc = "The `writeValueWithoutResponse()` method."]
266     #[doc = ""]
267     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTCharacteristic/writeValueWithoutResponse)"]
268     #[doc = ""]
269     #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattCharacteristic`*"]
270     #[doc = ""]
271     #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
272     #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
write_value_without_response_with_u8_array( this: &BluetoothRemoteGattCharacteristic, value: &mut [u8], ) -> ::js_sys::Promise273     pub fn write_value_without_response_with_u8_array(
274         this: &BluetoothRemoteGattCharacteristic,
275         value: &mut [u8],
276     ) -> ::js_sys::Promise;
277 }
278