web_sys/features/
gen_WebTransportDatagramDuplexStream.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 (extends = :: js_sys :: Object , js_name = WebTransportDatagramDuplexStream , typescript_type = "WebTransportDatagramDuplexStream")]
9    #[derive(Debug, Clone, PartialEq, Eq)]
10    #[doc = "The `WebTransportDatagramDuplexStream` class."]
11    #[doc = ""]
12    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebTransportDatagramDuplexStream)"]
13    #[doc = ""]
14    #[doc = "*This API requires the following crate features to be activated: `WebTransportDatagramDuplexStream`*"]
15    #[doc = ""]
16    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
17    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
18    pub type WebTransportDatagramDuplexStream;
19    #[cfg(web_sys_unstable_apis)]
20    #[cfg(feature = "ReadableStream")]
21    # [wasm_bindgen (structural , method , getter , js_class = "WebTransportDatagramDuplexStream" , js_name = readable)]
22    #[doc = "Getter for the `readable` field of this object."]
23    #[doc = ""]
24    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebTransportDatagramDuplexStream/readable)"]
25    #[doc = ""]
26    #[doc = "*This API requires the following crate features to be activated: `ReadableStream`, `WebTransportDatagramDuplexStream`*"]
27    #[doc = ""]
28    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
29    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
30    pub fn readable(this: &WebTransportDatagramDuplexStream) -> ReadableStream;
31    #[cfg(web_sys_unstable_apis)]
32    #[cfg(feature = "WritableStream")]
33    # [wasm_bindgen (structural , method , getter , js_class = "WebTransportDatagramDuplexStream" , js_name = writable)]
34    #[doc = "Getter for the `writable` field of this object."]
35    #[doc = ""]
36    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebTransportDatagramDuplexStream/writable)"]
37    #[doc = ""]
38    #[doc = "*This API requires the following crate features to be activated: `WebTransportDatagramDuplexStream`, `WritableStream`*"]
39    #[doc = ""]
40    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
41    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
42    pub fn writable(this: &WebTransportDatagramDuplexStream) -> WritableStream;
43    #[cfg(web_sys_unstable_apis)]
44    # [wasm_bindgen (structural , method , getter , js_class = "WebTransportDatagramDuplexStream" , js_name = maxDatagramSize)]
45    #[doc = "Getter for the `maxDatagramSize` field of this object."]
46    #[doc = ""]
47    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebTransportDatagramDuplexStream/maxDatagramSize)"]
48    #[doc = ""]
49    #[doc = "*This API requires the following crate features to be activated: `WebTransportDatagramDuplexStream`*"]
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 max_datagram_size(this: &WebTransportDatagramDuplexStream) -> u32;
54    #[cfg(web_sys_unstable_apis)]
55    # [wasm_bindgen (structural , method , getter , js_class = "WebTransportDatagramDuplexStream" , js_name = incomingMaxAge)]
56    #[doc = "Getter for the `incomingMaxAge` field of this object."]
57    #[doc = ""]
58    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebTransportDatagramDuplexStream/incomingMaxAge)"]
59    #[doc = ""]
60    #[doc = "*This API requires the following crate features to be activated: `WebTransportDatagramDuplexStream`*"]
61    #[doc = ""]
62    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
63    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
64    pub fn incoming_max_age(this: &WebTransportDatagramDuplexStream) -> f64;
65    #[cfg(web_sys_unstable_apis)]
66    # [wasm_bindgen (structural , method , setter , js_class = "WebTransportDatagramDuplexStream" , js_name = incomingMaxAge)]
67    #[doc = "Setter for the `incomingMaxAge` field of this object."]
68    #[doc = ""]
69    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebTransportDatagramDuplexStream/incomingMaxAge)"]
70    #[doc = ""]
71    #[doc = "*This API requires the following crate features to be activated: `WebTransportDatagramDuplexStream`*"]
72    #[doc = ""]
73    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
74    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
75    pub fn set_incoming_max_age(this: &WebTransportDatagramDuplexStream, value: f64);
76    #[cfg(web_sys_unstable_apis)]
77    # [wasm_bindgen (structural , method , getter , js_class = "WebTransportDatagramDuplexStream" , js_name = outgoingMaxAge)]
78    #[doc = "Getter for the `outgoingMaxAge` field of this object."]
79    #[doc = ""]
80    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebTransportDatagramDuplexStream/outgoingMaxAge)"]
81    #[doc = ""]
82    #[doc = "*This API requires the following crate features to be activated: `WebTransportDatagramDuplexStream`*"]
83    #[doc = ""]
84    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
85    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
86    pub fn outgoing_max_age(this: &WebTransportDatagramDuplexStream) -> f64;
87    #[cfg(web_sys_unstable_apis)]
88    # [wasm_bindgen (structural , method , setter , js_class = "WebTransportDatagramDuplexStream" , js_name = outgoingMaxAge)]
89    #[doc = "Setter for the `outgoingMaxAge` field of this object."]
90    #[doc = ""]
91    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebTransportDatagramDuplexStream/outgoingMaxAge)"]
92    #[doc = ""]
93    #[doc = "*This API requires the following crate features to be activated: `WebTransportDatagramDuplexStream`*"]
94    #[doc = ""]
95    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
96    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
97    pub fn set_outgoing_max_age(this: &WebTransportDatagramDuplexStream, value: f64);
98    #[cfg(web_sys_unstable_apis)]
99    # [wasm_bindgen (structural , method , getter , js_class = "WebTransportDatagramDuplexStream" , js_name = incomingHighWaterMark)]
100    #[doc = "Getter for the `incomingHighWaterMark` field of this object."]
101    #[doc = ""]
102    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebTransportDatagramDuplexStream/incomingHighWaterMark)"]
103    #[doc = ""]
104    #[doc = "*This API requires the following crate features to be activated: `WebTransportDatagramDuplexStream`*"]
105    #[doc = ""]
106    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
107    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
108    pub fn incoming_high_water_mark(this: &WebTransportDatagramDuplexStream) -> f64;
109    #[cfg(web_sys_unstable_apis)]
110    # [wasm_bindgen (structural , method , setter , js_class = "WebTransportDatagramDuplexStream" , js_name = incomingHighWaterMark)]
111    #[doc = "Setter for the `incomingHighWaterMark` field of this object."]
112    #[doc = ""]
113    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebTransportDatagramDuplexStream/incomingHighWaterMark)"]
114    #[doc = ""]
115    #[doc = "*This API requires the following crate features to be activated: `WebTransportDatagramDuplexStream`*"]
116    #[doc = ""]
117    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
118    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
119    pub fn set_incoming_high_water_mark(this: &WebTransportDatagramDuplexStream, value: f64);
120    #[cfg(web_sys_unstable_apis)]
121    # [wasm_bindgen (structural , method , getter , js_class = "WebTransportDatagramDuplexStream" , js_name = outgoingHighWaterMark)]
122    #[doc = "Getter for the `outgoingHighWaterMark` field of this object."]
123    #[doc = ""]
124    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebTransportDatagramDuplexStream/outgoingHighWaterMark)"]
125    #[doc = ""]
126    #[doc = "*This API requires the following crate features to be activated: `WebTransportDatagramDuplexStream`*"]
127    #[doc = ""]
128    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
129    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
130    pub fn outgoing_high_water_mark(this: &WebTransportDatagramDuplexStream) -> f64;
131    #[cfg(web_sys_unstable_apis)]
132    # [wasm_bindgen (structural , method , setter , js_class = "WebTransportDatagramDuplexStream" , js_name = outgoingHighWaterMark)]
133    #[doc = "Setter for the `outgoingHighWaterMark` field of this object."]
134    #[doc = ""]
135    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebTransportDatagramDuplexStream/outgoingHighWaterMark)"]
136    #[doc = ""]
137    #[doc = "*This API requires the following crate features to be activated: `WebTransportDatagramDuplexStream`*"]
138    #[doc = ""]
139    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
140    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
141    pub fn set_outgoing_high_water_mark(this: &WebTransportDatagramDuplexStream, value: f64);
142}