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