Skip to main content

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(
9        extends = "::js_sys::Object",
10        js_name = "WebTransportDatagramDuplexStream",
11        typescript_type = "WebTransportDatagramDuplexStream"
12    )]
13    #[derive(Debug, Clone, PartialEq, Eq)]
14    #[doc = "The `WebTransportDatagramDuplexStream` class."]
15    #[doc = ""]
16    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebTransportDatagramDuplexStream)"]
17    #[doc = ""]
18    #[doc = "*This API requires the following crate features to be activated: `WebTransportDatagramDuplexStream`*"]
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 WebTransportDatagramDuplexStream;
23    #[cfg(web_sys_unstable_apis)]
24    #[cfg(feature = "ReadableStream")]
25    #[wasm_bindgen(
26        method,
27        getter,
28        js_class = "WebTransportDatagramDuplexStream",
29        js_name = "readable"
30    )]
31    #[doc = "Getter for the `readable` field of this object."]
32    #[doc = ""]
33    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebTransportDatagramDuplexStream/readable)"]
34    #[doc = ""]
35    #[doc = "*This API requires the following crate features to be activated: `ReadableStream`, `WebTransportDatagramDuplexStream`*"]
36    #[doc = ""]
37    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
38    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
39    pub fn readable(this: &WebTransportDatagramDuplexStream) -> ReadableStream;
40    #[cfg(web_sys_unstable_apis)]
41    #[cfg(feature = "WritableStream")]
42    #[wasm_bindgen(
43        method,
44        getter,
45        js_class = "WebTransportDatagramDuplexStream",
46        js_name = "writable"
47    )]
48    #[doc = "Getter for the `writable` field of this object."]
49    #[doc = ""]
50    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebTransportDatagramDuplexStream/writable)"]
51    #[doc = ""]
52    #[doc = "*This API requires the following crate features to be activated: `WebTransportDatagramDuplexStream`, `WritableStream`*"]
53    #[doc = ""]
54    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
55    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
56    pub fn writable(this: &WebTransportDatagramDuplexStream) -> WritableStream;
57    #[cfg(web_sys_unstable_apis)]
58    #[wasm_bindgen(
59        method,
60        getter,
61        js_class = "WebTransportDatagramDuplexStream",
62        js_name = "maxDatagramSize"
63    )]
64    #[doc = "Getter for the `maxDatagramSize` field of this object."]
65    #[doc = ""]
66    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebTransportDatagramDuplexStream/maxDatagramSize)"]
67    #[doc = ""]
68    #[doc = "*This API requires the following crate features to be activated: `WebTransportDatagramDuplexStream`*"]
69    #[doc = ""]
70    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
71    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
72    pub fn max_datagram_size(this: &WebTransportDatagramDuplexStream) -> u32;
73    #[cfg(web_sys_unstable_apis)]
74    #[wasm_bindgen(
75        method,
76        getter,
77        js_class = "WebTransportDatagramDuplexStream",
78        js_name = "incomingMaxAge"
79    )]
80    #[doc = "Getter for the `incomingMaxAge` field of this object."]
81    #[doc = ""]
82    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebTransportDatagramDuplexStream/incomingMaxAge)"]
83    #[doc = ""]
84    #[doc = "*This API requires the following crate features to be activated: `WebTransportDatagramDuplexStream`*"]
85    #[doc = ""]
86    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
87    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
88    pub fn incoming_max_age(this: &WebTransportDatagramDuplexStream) -> f64;
89    #[cfg(web_sys_unstable_apis)]
90    #[wasm_bindgen(
91        method,
92        setter,
93        js_class = "WebTransportDatagramDuplexStream",
94        js_name = "incomingMaxAge"
95    )]
96    #[doc = "Setter for the `incomingMaxAge` field of this object."]
97    #[doc = ""]
98    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebTransportDatagramDuplexStream/incomingMaxAge)"]
99    #[doc = ""]
100    #[doc = "*This API requires the following crate features to be activated: `WebTransportDatagramDuplexStream`*"]
101    #[doc = ""]
102    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
103    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
104    pub fn set_incoming_max_age(this: &WebTransportDatagramDuplexStream, value: f64);
105    #[cfg(web_sys_unstable_apis)]
106    #[wasm_bindgen(
107        method,
108        getter,
109        js_class = "WebTransportDatagramDuplexStream",
110        js_name = "outgoingMaxAge"
111    )]
112    #[doc = "Getter for the `outgoingMaxAge` field of this object."]
113    #[doc = ""]
114    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebTransportDatagramDuplexStream/outgoingMaxAge)"]
115    #[doc = ""]
116    #[doc = "*This API requires the following crate features to be activated: `WebTransportDatagramDuplexStream`*"]
117    #[doc = ""]
118    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
119    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
120    pub fn outgoing_max_age(this: &WebTransportDatagramDuplexStream) -> f64;
121    #[cfg(web_sys_unstable_apis)]
122    #[wasm_bindgen(
123        method,
124        setter,
125        js_class = "WebTransportDatagramDuplexStream",
126        js_name = "outgoingMaxAge"
127    )]
128    #[doc = "Setter for the `outgoingMaxAge` field of this object."]
129    #[doc = ""]
130    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebTransportDatagramDuplexStream/outgoingMaxAge)"]
131    #[doc = ""]
132    #[doc = "*This API requires the following crate features to be activated: `WebTransportDatagramDuplexStream`*"]
133    #[doc = ""]
134    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
135    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
136    pub fn set_outgoing_max_age(this: &WebTransportDatagramDuplexStream, value: f64);
137    #[cfg(web_sys_unstable_apis)]
138    #[wasm_bindgen(
139        method,
140        getter,
141        js_class = "WebTransportDatagramDuplexStream",
142        js_name = "incomingHighWaterMark"
143    )]
144    #[doc = "Getter for the `incomingHighWaterMark` field of this object."]
145    #[doc = ""]
146    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebTransportDatagramDuplexStream/incomingHighWaterMark)"]
147    #[doc = ""]
148    #[doc = "*This API requires the following crate features to be activated: `WebTransportDatagramDuplexStream`*"]
149    #[doc = ""]
150    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
151    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
152    pub fn incoming_high_water_mark(this: &WebTransportDatagramDuplexStream) -> f64;
153    #[cfg(web_sys_unstable_apis)]
154    #[wasm_bindgen(
155        method,
156        setter,
157        js_class = "WebTransportDatagramDuplexStream",
158        js_name = "incomingHighWaterMark"
159    )]
160    #[doc = "Setter for the `incomingHighWaterMark` field of this object."]
161    #[doc = ""]
162    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebTransportDatagramDuplexStream/incomingHighWaterMark)"]
163    #[doc = ""]
164    #[doc = "*This API requires the following crate features to be activated: `WebTransportDatagramDuplexStream`*"]
165    #[doc = ""]
166    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
167    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
168    pub fn set_incoming_high_water_mark(this: &WebTransportDatagramDuplexStream, value: f64);
169    #[cfg(web_sys_unstable_apis)]
170    #[wasm_bindgen(
171        method,
172        getter,
173        js_class = "WebTransportDatagramDuplexStream",
174        js_name = "outgoingHighWaterMark"
175    )]
176    #[doc = "Getter for the `outgoingHighWaterMark` field of this object."]
177    #[doc = ""]
178    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebTransportDatagramDuplexStream/outgoingHighWaterMark)"]
179    #[doc = ""]
180    #[doc = "*This API requires the following crate features to be activated: `WebTransportDatagramDuplexStream`*"]
181    #[doc = ""]
182    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
183    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
184    pub fn outgoing_high_water_mark(this: &WebTransportDatagramDuplexStream) -> f64;
185    #[cfg(web_sys_unstable_apis)]
186    #[wasm_bindgen(
187        method,
188        setter,
189        js_class = "WebTransportDatagramDuplexStream",
190        js_name = "outgoingHighWaterMark"
191    )]
192    #[doc = "Setter for the `outgoingHighWaterMark` field of this object."]
193    #[doc = ""]
194    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebTransportDatagramDuplexStream/outgoingHighWaterMark)"]
195    #[doc = ""]
196    #[doc = "*This API requires the following crate features to be activated: `WebTransportDatagramDuplexStream`*"]
197    #[doc = ""]
198    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
199    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
200    pub fn set_outgoing_high_water_mark(this: &WebTransportDatagramDuplexStream, value: f64);
201}