Skip to main content

web_sys/features/
gen_BluetoothUuid.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(
9        extends = "::js_sys::Object",
10        js_name = "BluetoothUUID",
11        typescript_type = "BluetoothUUID"
12    )]
13    #[derive(Debug, Clone, PartialEq, Eq)]
14    #[doc = "The `BluetoothUuid` class."]
15    #[doc = ""]
16    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothUUID)"]
17    #[doc = ""]
18    #[doc = "*This API requires the following crate features to be activated: `BluetoothUuid`*"]
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 BluetoothUuid;
23    #[cfg(web_sys_unstable_apis)]
24    #[wasm_bindgen(
25        static_method_of = "BluetoothUuid",
26        js_class = "BluetoothUUID",
27        js_name = "canonicalUUID"
28    )]
29    #[doc = "The `canonicalUUID()` method."]
30    #[doc = ""]
31    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothUUID/canonicalUUID_static)"]
32    #[doc = ""]
33    #[doc = "*This API requires the following crate features to be activated: `BluetoothUuid`*"]
34    #[doc = ""]
35    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
36    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
37    pub fn canonical_uuid(alias: u32) -> ::alloc::string::String;
38    #[cfg(web_sys_unstable_apis)]
39    #[wasm_bindgen(
40        static_method_of = "BluetoothUuid",
41        js_class = "BluetoothUUID",
42        js_name = "getCharacteristic"
43    )]
44    #[doc = "The `getCharacteristic()` method."]
45    #[doc = ""]
46    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothUUID/getCharacteristic_static)"]
47    #[doc = ""]
48    #[doc = "*This API requires the following crate features to be activated: `BluetoothUuid`*"]
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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
52    pub fn get_characteristic_with_str(name: &str) -> ::alloc::string::String;
53    #[cfg(web_sys_unstable_apis)]
54    #[wasm_bindgen(
55        static_method_of = "BluetoothUuid",
56        js_class = "BluetoothUUID",
57        js_name = "getCharacteristic"
58    )]
59    #[doc = "The `getCharacteristic()` method."]
60    #[doc = ""]
61    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothUUID/getCharacteristic_static)"]
62    #[doc = ""]
63    #[doc = "*This API requires the following crate features to be activated: `BluetoothUuid`*"]
64    #[doc = ""]
65    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
66    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
67    pub fn get_characteristic_with_u32(name: u32) -> ::alloc::string::String;
68    #[cfg(web_sys_unstable_apis)]
69    #[wasm_bindgen(
70        static_method_of = "BluetoothUuid",
71        js_class = "BluetoothUUID",
72        js_name = "getDescriptor"
73    )]
74    #[doc = "The `getDescriptor()` method."]
75    #[doc = ""]
76    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothUUID/getDescriptor_static)"]
77    #[doc = ""]
78    #[doc = "*This API requires the following crate features to be activated: `BluetoothUuid`*"]
79    #[doc = ""]
80    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
81    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
82    pub fn get_descriptor_with_str(name: &str) -> ::alloc::string::String;
83    #[cfg(web_sys_unstable_apis)]
84    #[wasm_bindgen(
85        static_method_of = "BluetoothUuid",
86        js_class = "BluetoothUUID",
87        js_name = "getDescriptor"
88    )]
89    #[doc = "The `getDescriptor()` method."]
90    #[doc = ""]
91    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothUUID/getDescriptor_static)"]
92    #[doc = ""]
93    #[doc = "*This API requires the following crate features to be activated: `BluetoothUuid`*"]
94    #[doc = ""]
95    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
96    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
97    pub fn get_descriptor_with_u32(name: u32) -> ::alloc::string::String;
98    #[cfg(web_sys_unstable_apis)]
99    #[wasm_bindgen(
100        static_method_of = "BluetoothUuid",
101        js_class = "BluetoothUUID",
102        js_name = "getService"
103    )]
104    #[doc = "The `getService()` method."]
105    #[doc = ""]
106    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothUUID/getService_static)"]
107    #[doc = ""]
108    #[doc = "*This API requires the following crate features to be activated: `BluetoothUuid`*"]
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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
112    pub fn get_service_with_str(name: &str) -> ::alloc::string::String;
113    #[cfg(web_sys_unstable_apis)]
114    #[wasm_bindgen(
115        static_method_of = "BluetoothUuid",
116        js_class = "BluetoothUUID",
117        js_name = "getService"
118    )]
119    #[doc = "The `getService()` method."]
120    #[doc = ""]
121    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothUUID/getService_static)"]
122    #[doc = ""]
123    #[doc = "*This API requires the following crate features to be activated: `BluetoothUuid`*"]
124    #[doc = ""]
125    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
126    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
127    pub fn get_service_with_u32(name: u32) -> ::alloc::string::String;
128}