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 = BluetoothRemoteGATTServer , typescript_type = "BluetoothRemoteGATTServer")] 8 #[derive(Debug, Clone, PartialEq, Eq)] 9 #[doc = "The `BluetoothRemoteGattServer` class."] 10 #[doc = ""] 11 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTServer)"] 12 #[doc = ""] 13 #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattServer`*"] 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 BluetoothRemoteGattServer; 18 #[cfg(web_sys_unstable_apis)] 19 #[cfg(feature = "BluetoothDevice")] 20 # [wasm_bindgen (structural , method , getter , js_class = "BluetoothRemoteGATTServer" , js_name = device)] 21 #[doc = "Getter for the `device` field of this object."] 22 #[doc = ""] 23 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTServer/device)"] 24 #[doc = ""] 25 #[doc = "*This API requires the following crate features to be activated: `BluetoothDevice`, `BluetoothRemoteGattServer`*"] 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)*"] device(this: &BluetoothRemoteGattServer) -> BluetoothDevice29 pub fn device(this: &BluetoothRemoteGattServer) -> BluetoothDevice; 30 #[cfg(web_sys_unstable_apis)] 31 # [wasm_bindgen (structural , method , getter , js_class = "BluetoothRemoteGATTServer" , js_name = connected)] 32 #[doc = "Getter for the `connected` field of this object."] 33 #[doc = ""] 34 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTServer/connected)"] 35 #[doc = ""] 36 #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattServer`*"] 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)*"] connected(this: &BluetoothRemoteGattServer) -> bool40 pub fn connected(this: &BluetoothRemoteGattServer) -> bool; 41 #[cfg(web_sys_unstable_apis)] 42 # [wasm_bindgen (method , structural , js_class = "BluetoothRemoteGATTServer" , js_name = connect)] 43 #[doc = "The `connect()` method."] 44 #[doc = ""] 45 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTServer/connect)"] 46 #[doc = ""] 47 #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattServer`*"] 48 #[doc = ""] 49 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] 50 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] connect(this: &BluetoothRemoteGattServer) -> ::js_sys::Promise51 pub fn connect(this: &BluetoothRemoteGattServer) -> ::js_sys::Promise; 52 #[cfg(web_sys_unstable_apis)] 53 # [wasm_bindgen (method , structural , js_class = "BluetoothRemoteGATTServer" , js_name = disconnect)] 54 #[doc = "The `disconnect()` method."] 55 #[doc = ""] 56 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTServer/disconnect)"] 57 #[doc = ""] 58 #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattServer`*"] 59 #[doc = ""] 60 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] 61 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] disconnect(this: &BluetoothRemoteGattServer)62 pub fn disconnect(this: &BluetoothRemoteGattServer); 63 #[cfg(web_sys_unstable_apis)] 64 # [wasm_bindgen (method , structural , js_class = "BluetoothRemoteGATTServer" , js_name = getPrimaryService)] 65 #[doc = "The `getPrimaryService()` method."] 66 #[doc = ""] 67 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTServer/getPrimaryService)"] 68 #[doc = ""] 69 #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattServer`*"] 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] get_primary_service_with_str( this: &BluetoothRemoteGattServer, service: &str, ) -> ::js_sys::Promise73 pub fn get_primary_service_with_str( 74 this: &BluetoothRemoteGattServer, 75 service: &str, 76 ) -> ::js_sys::Promise; 77 #[cfg(web_sys_unstable_apis)] 78 # [wasm_bindgen (method , structural , js_class = "BluetoothRemoteGATTServer" , js_name = getPrimaryService)] 79 #[doc = "The `getPrimaryService()` method."] 80 #[doc = ""] 81 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTServer/getPrimaryService)"] 82 #[doc = ""] 83 #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattServer`*"] 84 #[doc = ""] 85 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] 86 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] get_primary_service_with_u32( this: &BluetoothRemoteGattServer, service: u32, ) -> ::js_sys::Promise87 pub fn get_primary_service_with_u32( 88 this: &BluetoothRemoteGattServer, 89 service: u32, 90 ) -> ::js_sys::Promise; 91 #[cfg(web_sys_unstable_apis)] 92 # [wasm_bindgen (method , structural , js_class = "BluetoothRemoteGATTServer" , js_name = getPrimaryServices)] 93 #[doc = "The `getPrimaryServices()` method."] 94 #[doc = ""] 95 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTServer/getPrimaryServices)"] 96 #[doc = ""] 97 #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattServer`*"] 98 #[doc = ""] 99 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] 100 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] get_primary_services(this: &BluetoothRemoteGattServer) -> ::js_sys::Promise101 pub fn get_primary_services(this: &BluetoothRemoteGattServer) -> ::js_sys::Promise; 102 #[cfg(web_sys_unstable_apis)] 103 # [wasm_bindgen (method , structural , js_class = "BluetoothRemoteGATTServer" , js_name = getPrimaryServices)] 104 #[doc = "The `getPrimaryServices()` method."] 105 #[doc = ""] 106 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTServer/getPrimaryServices)"] 107 #[doc = ""] 108 #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattServer`*"] 109 #[doc = ""] 110 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] 111 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] get_primary_services_with_str( this: &BluetoothRemoteGattServer, service: &str, ) -> ::js_sys::Promise112 pub fn get_primary_services_with_str( 113 this: &BluetoothRemoteGattServer, 114 service: &str, 115 ) -> ::js_sys::Promise; 116 #[cfg(web_sys_unstable_apis)] 117 # [wasm_bindgen (method , structural , js_class = "BluetoothRemoteGATTServer" , js_name = getPrimaryServices)] 118 #[doc = "The `getPrimaryServices()` method."] 119 #[doc = ""] 120 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTServer/getPrimaryServices)"] 121 #[doc = ""] 122 #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattServer`*"] 123 #[doc = ""] 124 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] 125 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] get_primary_services_with_u32( this: &BluetoothRemoteGattServer, service: u32, ) -> ::js_sys::Promise126 pub fn get_primary_services_with_u32( 127 this: &BluetoothRemoteGattServer, 128 service: u32, 129 ) -> ::js_sys::Promise; 130 } 131