Skip to main content

web_sys/features/
gen_UsbIsochronousOutTransferPacket.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 = "USBIsochronousOutTransferPacket",
11        typescript_type = "USBIsochronousOutTransferPacket"
12    )]
13    #[derive(Debug, Clone, PartialEq, Eq)]
14    #[doc = "The `UsbIsochronousOutTransferPacket` class."]
15    #[doc = ""]
16    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBIsochronousOutTransferPacket)"]
17    #[doc = ""]
18    #[doc = "*This API requires the following crate features to be activated: `UsbIsochronousOutTransferPacket`*"]
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 UsbIsochronousOutTransferPacket;
23    #[cfg(web_sys_unstable_apis)]
24    #[wasm_bindgen(
25        method,
26        getter,
27        js_class = "USBIsochronousOutTransferPacket",
28        js_name = "bytesWritten"
29    )]
30    #[doc = "Getter for the `bytesWritten` field of this object."]
31    #[doc = ""]
32    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBIsochronousOutTransferPacket/bytesWritten)"]
33    #[doc = ""]
34    #[doc = "*This API requires the following crate features to be activated: `UsbIsochronousOutTransferPacket`*"]
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 bytes_written(this: &UsbIsochronousOutTransferPacket) -> u32;
39    #[cfg(web_sys_unstable_apis)]
40    #[cfg(feature = "UsbTransferStatus")]
41    #[wasm_bindgen(
42        method,
43        getter,
44        js_class = "USBIsochronousOutTransferPacket",
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/USBIsochronousOutTransferPacket/status)"]
50    #[doc = ""]
51    #[doc = "*This API requires the following crate features to be activated: `UsbIsochronousOutTransferPacket`, `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: &UsbIsochronousOutTransferPacket) -> UsbTransferStatus;
56    #[cfg(web_sys_unstable_apis)]
57    #[cfg(feature = "UsbTransferStatus")]
58    #[wasm_bindgen(catch, constructor, js_class = "USBIsochronousOutTransferPacket")]
59    #[doc = "The `new UsbIsochronousOutTransferPacket(..)` constructor, creating a new instance of `UsbIsochronousOutTransferPacket`."]
60    #[doc = ""]
61    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBIsochronousOutTransferPacket/USBIsochronousOutTransferPacket)"]
62    #[doc = ""]
63    #[doc = "*This API requires the following crate features to be activated: `UsbIsochronousOutTransferPacket`, `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<UsbIsochronousOutTransferPacket, JsValue>;
68    #[cfg(web_sys_unstable_apis)]
69    #[cfg(feature = "UsbTransferStatus")]
70    #[wasm_bindgen(catch, constructor, js_class = "USBIsochronousOutTransferPacket")]
71    #[doc = "The `new UsbIsochronousOutTransferPacket(..)` constructor, creating a new instance of `UsbIsochronousOutTransferPacket`."]
72    #[doc = ""]
73    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBIsochronousOutTransferPacket/USBIsochronousOutTransferPacket)"]
74    #[doc = ""]
75    #[doc = "*This API requires the following crate features to be activated: `UsbIsochronousOutTransferPacket`, `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_bytes_written(
80        status: UsbTransferStatus,
81        bytes_written: u32,
82    ) -> Result<UsbIsochronousOutTransferPacket, JsValue>;
83}