web_sys/features/
gen_WebTransportReceiveStream.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 = "ReadableStream",
10 extends = "::js_sys::Object",
11 js_name = "WebTransportReceiveStream",
12 typescript_type = "WebTransportReceiveStream"
13 )]
14 #[derive(Debug, Clone, PartialEq, Eq)]
15 #[doc = "The `WebTransportReceiveStream` class."]
16 #[doc = ""]
17 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebTransportReceiveStream)"]
18 #[doc = ""]
19 #[doc = "*This API requires the following crate features to be activated: `WebTransportReceiveStream`*"]
20 #[doc = ""]
21 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
22 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
23 pub type WebTransportReceiveStream;
24 #[cfg(web_sys_unstable_apis)]
25 #[cfg(feature = "WebTransportReceiveStreamStats")]
26 #[wasm_bindgen(method, js_class = "WebTransportReceiveStream", js_name = "getStats")]
27 #[doc = "The `getStats()` method."]
28 #[doc = ""]
29 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebTransportReceiveStream/getStats)"]
30 #[doc = ""]
31 #[doc = "*This API requires the following crate features to be activated: `WebTransportReceiveStream`, `WebTransportReceiveStreamStats`*"]
32 #[doc = ""]
33 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
34 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
35 pub fn get_stats(
36 this: &WebTransportReceiveStream,
37 ) -> ::js_sys::Promise<WebTransportReceiveStreamStats>;
38}