Skip to main content

web_sys/features/
gen_BluetoothPermissionResult.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 = "PermissionStatus",
10        extends = "EventTarget",
11        extends = "::js_sys::Object",
12        js_name = "BluetoothPermissionResult",
13        typescript_type = "BluetoothPermissionResult"
14    )]
15    #[derive(Debug, Clone, PartialEq, Eq)]
16    #[doc = "The `BluetoothPermissionResult` class."]
17    #[doc = ""]
18    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothPermissionResult)"]
19    #[doc = ""]
20    #[doc = "*This API requires the following crate features to be activated: `BluetoothPermissionResult`*"]
21    #[doc = ""]
22    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
23    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
24    pub type BluetoothPermissionResult;
25    #[cfg(web_sys_unstable_apis)]
26    #[cfg(feature = "BluetoothDevice")]
27    #[wasm_bindgen(
28        method,
29        getter,
30        js_class = "BluetoothPermissionResult",
31        js_name = "devices"
32    )]
33    #[doc = "Getter for the `devices` field of this object."]
34    #[doc = ""]
35    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothPermissionResult/devices)"]
36    #[doc = ""]
37    #[doc = "*This API requires the following crate features to be activated: `BluetoothDevice`, `BluetoothPermissionResult`*"]
38    #[doc = ""]
39    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
40    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
41    pub fn devices(this: &BluetoothPermissionResult) -> ::js_sys::Array<BluetoothDevice>;
42    #[cfg(web_sys_unstable_apis)]
43    #[cfg(feature = "BluetoothDevice")]
44    #[wasm_bindgen(
45        method,
46        setter,
47        js_class = "BluetoothPermissionResult",
48        js_name = "devices"
49    )]
50    #[doc = "Setter for the `devices` field of this object."]
51    #[doc = ""]
52    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothPermissionResult/devices)"]
53    #[doc = ""]
54    #[doc = "*This API requires the following crate features to be activated: `BluetoothDevice`, `BluetoothPermissionResult`*"]
55    #[doc = ""]
56    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
57    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
58    pub fn set_devices(this: &BluetoothPermissionResult, value: &[BluetoothDevice]);
59}