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