Skip to main content

web_sys/features/
gen_BluetoothServiceDataMap.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 = "BluetoothServiceDataMap",
11        typescript_type = "BluetoothServiceDataMap"
12    )]
13    #[derive(Debug, Clone, PartialEq, Eq)]
14    #[doc = "The `BluetoothServiceDataMap` class."]
15    #[doc = ""]
16    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothServiceDataMap)"]
17    #[doc = ""]
18    #[doc = "*This API requires the following crate features to be activated: `BluetoothServiceDataMap`*"]
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 BluetoothServiceDataMap;
23    #[cfg(web_sys_unstable_apis)]
24    #[wasm_bindgen(method, getter, js_class = "BluetoothServiceDataMap", js_name = "size")]
25    #[doc = "Getter for the `size` field of this object."]
26    #[doc = ""]
27    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothServiceDataMap/size)"]
28    #[doc = ""]
29    #[doc = "*This API requires the following crate features to be activated: `BluetoothServiceDataMap`*"]
30    #[doc = ""]
31    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
32    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
33    pub fn size(this: &BluetoothServiceDataMap) -> u32;
34    #[cfg(web_sys_unstable_apis)]
35    #[wasm_bindgen(
36        catch,
37        method,
38        js_class = "BluetoothServiceDataMap",
39        js_name = "forEach"
40    )]
41    #[doc = "The `forEach()` method."]
42    #[doc = ""]
43    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothServiceDataMap/forEach)"]
44    #[doc = ""]
45    #[doc = "*This API requires the following crate features to be activated: `BluetoothServiceDataMap`*"]
46    #[doc = ""]
47    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
48    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
49    pub fn for_each(
50        this: &BluetoothServiceDataMap,
51        callback: &::js_sys::Function<
52            fn(::js_sys::DataView, ::js_sys::JsString) -> ::js_sys::Undefined,
53        >,
54    ) -> Result<(), JsValue>;
55    #[cfg(web_sys_unstable_apis)]
56    #[wasm_bindgen(method, js_class = "BluetoothServiceDataMap")]
57    #[doc = "The `get()` method."]
58    #[doc = ""]
59    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothServiceDataMap/get)"]
60    #[doc = ""]
61    #[doc = "*This API requires the following crate features to be activated: `BluetoothServiceDataMap`*"]
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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
65    pub fn get(this: &BluetoothServiceDataMap, key: &str) -> Option<::js_sys::DataView>;
66    #[cfg(web_sys_unstable_apis)]
67    #[wasm_bindgen(method, js_class = "BluetoothServiceDataMap")]
68    #[doc = "The `has()` method."]
69    #[doc = ""]
70    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothServiceDataMap/has)"]
71    #[doc = ""]
72    #[doc = "*This API requires the following crate features to be activated: `BluetoothServiceDataMap`*"]
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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
76    pub fn has(this: &BluetoothServiceDataMap, key: &str) -> bool;
77    #[cfg(web_sys_unstable_apis)]
78    #[wasm_bindgen(method, js_class = "BluetoothServiceDataMap")]
79    #[doc = "The `entries()` method."]
80    #[doc = ""]
81    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothServiceDataMap/entries)"]
82    #[doc = ""]
83    #[doc = "*This API requires the following crate features to be activated: `BluetoothServiceDataMap`*"]
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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
87    pub fn entries(
88        this: &BluetoothServiceDataMap,
89    ) -> ::js_sys::Iterator<::js_sys::ArrayTuple<(::js_sys::JsString, ::js_sys::DataView)>>;
90    #[cfg(web_sys_unstable_apis)]
91    #[wasm_bindgen(method, js_class = "BluetoothServiceDataMap")]
92    #[doc = "The `keys()` method."]
93    #[doc = ""]
94    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothServiceDataMap/keys)"]
95    #[doc = ""]
96    #[doc = "*This API requires the following crate features to be activated: `BluetoothServiceDataMap`*"]
97    #[doc = ""]
98    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
99    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
100    pub fn keys(this: &BluetoothServiceDataMap) -> ::js_sys::Iterator<::js_sys::JsString>;
101    #[cfg(web_sys_unstable_apis)]
102    #[wasm_bindgen(method, js_class = "BluetoothServiceDataMap")]
103    #[doc = "The `values()` method."]
104    #[doc = ""]
105    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothServiceDataMap/values)"]
106    #[doc = ""]
107    #[doc = "*This API requires the following crate features to be activated: `BluetoothServiceDataMap`*"]
108    #[doc = ""]
109    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
110    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
111    pub fn values(this: &BluetoothServiceDataMap) -> ::js_sys::Iterator<::js_sys::DataView>;
112}