web_webtransport_sys/gen/
gen_WebTransport.rs1#![allow(unused_imports)]
2use super::*;
3use wasm_bindgen::prelude::*;
4#[wasm_bindgen]
5extern "C" {
6 # [wasm_bindgen (extends = :: js_sys :: Object , js_name = WebTransport , typescript_type = "WebTransport")]
7 #[derive(Debug, Clone, PartialEq, Eq)]
8 #[doc = "The `WebTransport` class."]
9 #[doc = ""]
10 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebTransport)"]
11 pub type WebTransport;
12 # [wasm_bindgen (structural , method , getter , js_class = "WebTransport" , js_name = ready)]
13 #[doc = "Getter for the `ready` field of this object."]
14 #[doc = ""]
15 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebTransport/ready)"]
16 pub fn ready(this: &WebTransport) -> ::js_sys::Promise;
17 # [wasm_bindgen (structural , method , getter , js_class = "WebTransport" , js_name = reliability)]
18 #[doc = "Getter for the `reliability` field of this object."]
19 #[doc = ""]
20 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebTransport/reliability)"]
21 pub fn reliability(this: &WebTransport) -> WebTransportReliabilityMode;
22 # [wasm_bindgen (structural , method , getter , js_class = "WebTransport" , js_name = congestionControl)]
23 #[doc = "Getter for the `congestionControl` field of this object."]
24 #[doc = ""]
25 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebTransport/congestionControl)"]
26 pub fn congestion_control(this: &WebTransport) -> WebTransportCongestionControl;
27 # [wasm_bindgen (structural , method , getter , js_class = "WebTransport" , js_name = closed)]
28 #[doc = "Getter for the `closed` field of this object."]
29 #[doc = ""]
30 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebTransport/closed)"]
31 pub fn closed(this: &WebTransport) -> ::js_sys::Promise;
32 # [wasm_bindgen (structural , method , getter , js_class = "WebTransport" , js_name = draining)]
33 #[doc = "Getter for the `draining` field of this object."]
34 #[doc = ""]
35 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebTransport/draining)"]
36 pub fn draining(this: &WebTransport) -> ::js_sys::Promise;
37 # [wasm_bindgen (structural , method , getter , js_class = "WebTransport" , js_name = datagrams)]
38 #[doc = "Getter for the `datagrams` field of this object."]
39 #[doc = ""]
40 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebTransport/datagrams)"]
41 pub fn datagrams(this: &WebTransport) -> WebTransportDatagramDuplexStream;
42 # [wasm_bindgen (structural , static_method_of = WebTransport , getter , js_class = "WebTransport" , js_name = supportsReliableOnly)]
43 #[doc = "Getter for the `supportsReliableOnly` field of this object."]
44 #[doc = ""]
45 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebTransport/supportsReliableOnly)"]
46 pub fn supports_reliable_only() -> bool;
47 # [wasm_bindgen (method , structural , js_class = "WebTransport" , js_name = close)]
48 #[doc = "The `close()` method."]
49 #[doc = ""]
50 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebTransport/close)"]
51 pub fn close(this: &WebTransport);
52 # [wasm_bindgen (method , structural , js_class = "WebTransport" , js_name = close)]
53 #[doc = "The `close()` method."]
54 #[doc = ""]
55 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebTransport/close)"]
56 pub fn close_with_close_info(this: &WebTransport, close_info: &WebTransportCloseInfo);
57 # [wasm_bindgen (method , structural , js_class = "WebTransport" , js_name = createBidirectionalStream)]
58 #[doc = "The `createBidirectionalStream()` method."]
59 #[doc = ""]
60 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebTransport/createBidirectionalStream)"]
61 pub fn create_bidirectional_stream(this: &WebTransport) -> ::js_sys::Promise;
62 # [wasm_bindgen (method , structural , js_class = "WebTransport" , js_name = createBidirectionalStream)]
63 #[doc = "The `createBidirectionalStream()` method."]
64 #[doc = ""]
65 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebTransport/createBidirectionalStream)"]
66 pub fn create_bidirectional_stream_with_options(
67 this: &WebTransport,
68 options: &WebTransportSendStreamOptions,
69 ) -> ::js_sys::Promise;
70 # [wasm_bindgen (method , structural , js_class = "WebTransport" , js_name = createSendGroup)]
71 #[doc = "The `createSendGroup()` method."]
72 #[doc = ""]
73 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebTransport/createSendGroup)"]
74 pub fn create_send_group(this: &WebTransport) -> WebTransportSendGroup;
75 # [wasm_bindgen (method , structural , js_class = "WebTransport" , js_name = createUnidirectionalStream)]
76 #[doc = "The `createUnidirectionalStream()` method."]
77 #[doc = ""]
78 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebTransport/createUnidirectionalStream)"]
79 pub fn create_unidirectional_stream(this: &WebTransport) -> ::js_sys::Promise;
80 # [wasm_bindgen (method , structural , js_class = "WebTransport" , js_name = createUnidirectionalStream)]
81 #[doc = "The `createUnidirectionalStream()` method."]
82 #[doc = ""]
83 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebTransport/createUnidirectionalStream)"]
84 pub fn create_unidirectional_stream_with_options(
85 this: &WebTransport,
86 options: &WebTransportSendStreamOptions,
87 ) -> ::js_sys::Promise;
88 # [wasm_bindgen (method , structural , js_class = "WebTransport" , js_name = getStats)]
89 #[doc = "The `getStats()` method."]
90 #[doc = ""]
91 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebTransport/getStats)"]
92 pub fn get_stats(this: &WebTransport) -> ::js_sys::Promise;
93}