web_sys/features/
gen_UsbIsochronousInTransferResult.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 = "::js_sys::Object",
10 js_name = "USBIsochronousInTransferResult",
11 typescript_type = "USBIsochronousInTransferResult"
12 )]
13 #[derive(Debug, Clone, PartialEq, Eq)]
14 #[doc = "The `UsbIsochronousInTransferResult` class."]
15 #[doc = ""]
16 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBIsochronousInTransferResult)"]
17 #[doc = ""]
18 #[doc = "*This API requires the following crate features to be activated: `UsbIsochronousInTransferResult`*"]
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 UsbIsochronousInTransferResult;
23 #[cfg(web_sys_unstable_apis)]
24 #[wasm_bindgen(
25 method,
26 getter,
27 js_class = "USBIsochronousInTransferResult",
28 js_name = "data"
29 )]
30 #[doc = "Getter for the `data` field of this object."]
31 #[doc = ""]
32 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBIsochronousInTransferResult/data)"]
33 #[doc = ""]
34 #[doc = "*This API requires the following crate features to be activated: `UsbIsochronousInTransferResult`*"]
35 #[doc = ""]
36 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
37 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
38 pub fn data(this: &UsbIsochronousInTransferResult) -> Option<::js_sys::DataView>;
39 #[cfg(web_sys_unstable_apis)]
40 #[cfg(feature = "UsbIsochronousInTransferPacket")]
41 #[wasm_bindgen(
42 method,
43 getter,
44 js_class = "USBIsochronousInTransferResult",
45 js_name = "packets"
46 )]
47 #[doc = "Getter for the `packets` field of this object."]
48 #[doc = ""]
49 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBIsochronousInTransferResult/packets)"]
50 #[doc = ""]
51 #[doc = "*This API requires the following crate features to be activated: `UsbIsochronousInTransferPacket`, `UsbIsochronousInTransferResult`*"]
52 #[doc = ""]
53 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
54 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
55 pub fn packets(
56 this: &UsbIsochronousInTransferResult,
57 ) -> ::js_sys::Array<UsbIsochronousInTransferPacket>;
58 #[cfg(web_sys_unstable_apis)]
59 #[cfg(feature = "UsbIsochronousInTransferPacket")]
60 #[wasm_bindgen(catch, constructor, js_class = "USBIsochronousInTransferResult")]
61 #[doc = "The `new UsbIsochronousInTransferResult(..)` constructor, creating a new instance of `UsbIsochronousInTransferResult`."]
62 #[doc = ""]
63 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBIsochronousInTransferResult/USBIsochronousInTransferResult)"]
64 #[doc = ""]
65 #[doc = "*This API requires the following crate features to be activated: `UsbIsochronousInTransferPacket`, `UsbIsochronousInTransferResult`*"]
66 #[doc = ""]
67 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
68 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
69 pub fn new(
70 packets: &[UsbIsochronousInTransferPacket],
71 ) -> Result<UsbIsochronousInTransferResult, JsValue>;
72 #[cfg(web_sys_unstable_apis)]
73 #[cfg(feature = "UsbIsochronousInTransferPacket")]
74 #[wasm_bindgen(catch, constructor, js_class = "USBIsochronousInTransferResult")]
75 #[doc = "The `new UsbIsochronousInTransferResult(..)` constructor, creating a new instance of `UsbIsochronousInTransferResult`."]
76 #[doc = ""]
77 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBIsochronousInTransferResult/USBIsochronousInTransferResult)"]
78 #[doc = ""]
79 #[doc = "*This API requires the following crate features to be activated: `UsbIsochronousInTransferPacket`, `UsbIsochronousInTransferResult`*"]
80 #[doc = ""]
81 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
82 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
83 pub fn new_with_data(
84 packets: &[UsbIsochronousInTransferPacket],
85 data: Option<&::js_sys::DataView>,
86 ) -> Result<UsbIsochronousInTransferResult, JsValue>;
87}