Skip to main content

web_sys/features/
gen_UsbIsochronousOutTransferResult.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 = "USBIsochronousOutTransferResult",
11        typescript_type = "USBIsochronousOutTransferResult"
12    )]
13    #[derive(Debug, Clone, PartialEq, Eq)]
14    #[doc = "The `UsbIsochronousOutTransferResult` class."]
15    #[doc = ""]
16    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBIsochronousOutTransferResult)"]
17    #[doc = ""]
18    #[doc = "*This API requires the following crate features to be activated: `UsbIsochronousOutTransferResult`*"]
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 UsbIsochronousOutTransferResult;
23    #[cfg(web_sys_unstable_apis)]
24    #[cfg(feature = "UsbIsochronousOutTransferPacket")]
25    #[wasm_bindgen(
26        method,
27        getter,
28        js_class = "USBIsochronousOutTransferResult",
29        js_name = "packets"
30    )]
31    #[doc = "Getter for the `packets` field of this object."]
32    #[doc = ""]
33    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBIsochronousOutTransferResult/packets)"]
34    #[doc = ""]
35    #[doc = "*This API requires the following crate features to be activated: `UsbIsochronousOutTransferPacket`, `UsbIsochronousOutTransferResult`*"]
36    #[doc = ""]
37    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
38    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
39    pub fn packets(
40        this: &UsbIsochronousOutTransferResult,
41    ) -> ::js_sys::Array<UsbIsochronousOutTransferPacket>;
42    #[cfg(web_sys_unstable_apis)]
43    #[cfg(feature = "UsbIsochronousOutTransferPacket")]
44    #[wasm_bindgen(catch, constructor, js_class = "USBIsochronousOutTransferResult")]
45    #[doc = "The `new UsbIsochronousOutTransferResult(..)` constructor, creating a new instance of `UsbIsochronousOutTransferResult`."]
46    #[doc = ""]
47    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBIsochronousOutTransferResult/USBIsochronousOutTransferResult)"]
48    #[doc = ""]
49    #[doc = "*This API requires the following crate features to be activated: `UsbIsochronousOutTransferPacket`, `UsbIsochronousOutTransferResult`*"]
50    #[doc = ""]
51    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
52    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
53    pub fn new(
54        packets: &[UsbIsochronousOutTransferPacket],
55    ) -> Result<UsbIsochronousOutTransferResult, JsValue>;
56}