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