From b3860a03ce2aac528210dd7150032c64e768e84d Mon Sep 17 00:00:00 2001 From: mriise Date: Mon, 24 Apr 2023 10:55:40 -0700 Subject: [PATCH] remove duplicate bindings --- .../web-sys/src/features/gen_WebTransport.rs | 205 ------------------ .../gen_WebTransportBidirectionalStream.rs | 24 -- .../gen_WebTransportDatagramDuplexStream.rs | 123 ----------- .../src/features/gen_WebTransportError.rs | 60 ----- .../features/gen_WebTransportReceiveStream.rs | 11 - .../features/gen_WebTransportSendStream.rs | 11 - 6 files changed, 434 deletions(-) diff --git a/crates/web-sys/src/features/gen_WebTransport.rs b/crates/web-sys/src/features/gen_WebTransport.rs index 374d4e37d11..770a2cbdab5 100644 --- a/crates/web-sys/src/features/gen_WebTransport.rs +++ b/crates/web-sys/src/features/gen_WebTransport.rs @@ -109,125 +109,6 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn incoming_unidirectional_streams(this: &WebTransport) -> ReadableStream; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "WebTransport" , js_name = ready)] - #[doc = "Getter for the `ready` field of this object."] - #[doc = ""] - #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebTransport/ready)"] - #[doc = ""] - #[doc = "*This API requires the following crate features to be activated: `WebTransport`*"] - #[doc = ""] - #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] - #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] - pub fn ready(this: &WebTransport) -> ::js_sys::Promise; - #[cfg(web_sys_unstable_apis)] - #[cfg(feature = "WebTransportReliabilityMode")] - # [wasm_bindgen (structural , method , getter , js_class = "WebTransport" , js_name = reliability)] - #[doc = "Getter for the `reliability` field of this object."] - #[doc = ""] - #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebTransport/reliability)"] - #[doc = ""] - #[doc = "*This API requires the following crate features to be activated: `WebTransport`, `WebTransportReliabilityMode`*"] - #[doc = ""] - #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] - #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] - pub fn reliability(this: &WebTransport) -> WebTransportReliabilityMode; - #[cfg(web_sys_unstable_apis)] - #[cfg(feature = "WebTransportCongestionControl")] - # [wasm_bindgen (structural , method , getter , js_class = "WebTransport" , js_name = congestionControl)] - #[doc = "Getter for the `congestionControl` field of this object."] - #[doc = ""] - #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebTransport/congestionControl)"] - #[doc = ""] - #[doc = "*This API requires the following crate features to be activated: `WebTransport`, `WebTransportCongestionControl`*"] - #[doc = ""] - #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] - #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] - pub fn congestion_control(this: &WebTransport) -> WebTransportCongestionControl; - #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "WebTransport" , js_name = closed)] - #[doc = "Getter for the `closed` field of this object."] - #[doc = ""] - #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebTransport/closed)"] - #[doc = ""] - #[doc = "*This API requires the following crate features to be activated: `WebTransport`*"] - #[doc = ""] - #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] - #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] - pub fn closed(this: &WebTransport) -> ::js_sys::Promise; - #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "WebTransport" , js_name = draining)] - #[doc = "Getter for the `draining` field of this object."] - #[doc = ""] - #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebTransport/draining)"] - #[doc = ""] - #[doc = "*This API requires the following crate features to be activated: `WebTransport`*"] - #[doc = ""] - #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] - #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] - pub fn draining(this: &WebTransport) -> ::js_sys::Promise; - #[cfg(web_sys_unstable_apis)] - #[cfg(feature = "WebTransportDatagramDuplexStream")] - # [wasm_bindgen (structural , method , getter , js_class = "WebTransport" , js_name = datagrams)] - #[doc = "Getter for the `datagrams` field of this object."] - #[doc = ""] - #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebTransport/datagrams)"] - #[doc = ""] - #[doc = "*This API requires the following crate features to be activated: `WebTransport`, `WebTransportDatagramDuplexStream`*"] - #[doc = ""] - #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] - #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] - pub fn datagrams(this: &WebTransport) -> WebTransportDatagramDuplexStream; - #[cfg(web_sys_unstable_apis)] - #[cfg(feature = "ReadableStream")] - # [wasm_bindgen (structural , method , getter , js_class = "WebTransport" , js_name = incomingBidirectionalStreams)] - #[doc = "Getter for the `incomingBidirectionalStreams` field of this object."] - #[doc = ""] - #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebTransport/incomingBidirectionalStreams)"] - #[doc = ""] - #[doc = "*This API requires the following crate features to be activated: `ReadableStream`, `WebTransport`*"] - #[doc = ""] - #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] - #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] - pub fn incoming_bidirectional_streams(this: &WebTransport) -> ReadableStream; - #[cfg(web_sys_unstable_apis)] - #[cfg(feature = "ReadableStream")] - # [wasm_bindgen (structural , method , getter , js_class = "WebTransport" , js_name = incomingUnidirectionalStreams)] - #[doc = "Getter for the `incomingUnidirectionalStreams` field of this object."] - #[doc = ""] - #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebTransport/incomingUnidirectionalStreams)"] - #[doc = ""] - #[doc = "*This API requires the following crate features to be activated: `ReadableStream`, `WebTransport`*"] - #[doc = ""] - #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] - #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] - pub fn incoming_unidirectional_streams(this: &WebTransport) -> ReadableStream; - #[cfg(web_sys_unstable_apis)] - #[wasm_bindgen(catch, constructor, js_class = "WebTransport")] - #[doc = "The `new WebTransport(..)` constructor, creating a new instance of `WebTransport`."] - #[doc = ""] - #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebTransport/WebTransport)"] - #[doc = ""] - #[doc = "*This API requires the following crate features to be activated: `WebTransport`*"] - #[doc = ""] - #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] - #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] - pub fn new(url: &str) -> Result; - #[cfg(web_sys_unstable_apis)] - #[cfg(feature = "WebTransportOptions")] - #[wasm_bindgen(catch, constructor, js_class = "WebTransport")] - #[doc = "The `new WebTransport(..)` constructor, creating a new instance of `WebTransport`."] - #[doc = ""] - #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebTransport/WebTransport)"] - #[doc = ""] - #[doc = "*This API requires the following crate features to be activated: `WebTransport`, `WebTransportOptions`*"] - #[doc = ""] - #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] - #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] - pub fn new_with_options( - url: &str, - options: &WebTransportOptions, - ) -> Result; - #[cfg(web_sys_unstable_apis)] #[wasm_bindgen(catch, constructor, js_class = "WebTransport")] #[doc = "The `new WebTransport(..)` constructor, creating a new instance of `WebTransport`."] #[doc = ""] @@ -277,55 +158,6 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn close_with_close_info(this: &WebTransport, close_info: &WebTransportCloseInfo); #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "WebTransport" , js_name = close)] - #[doc = "The `close()` method."] - #[doc = ""] - #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebTransport/close)"] - #[doc = ""] - #[doc = "*This API requires the following crate features to be activated: `WebTransport`*"] - #[doc = ""] - #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] - #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] - pub fn close(this: &WebTransport); - #[cfg(web_sys_unstable_apis)] - #[cfg(feature = "WebTransportCloseInfo")] - # [wasm_bindgen (method , structural , js_class = "WebTransport" , js_name = close)] - #[doc = "The `close()` method."] - #[doc = ""] - #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebTransport/close)"] - #[doc = ""] - #[doc = "*This API requires the following crate features to be activated: `WebTransport`, `WebTransportCloseInfo`*"] - #[doc = ""] - #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] - #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] - pub fn close_with_close_info(this: &WebTransport, close_info: &WebTransportCloseInfo); - #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "WebTransport" , js_name = createBidirectionalStream)] - #[doc = "The `createBidirectionalStream()` method."] - #[doc = ""] - #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebTransport/createBidirectionalStream)"] - #[doc = ""] - #[doc = "*This API requires the following crate features to be activated: `WebTransport`*"] - #[doc = ""] - #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] - #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] - pub fn create_bidirectional_stream(this: &WebTransport) -> ::js_sys::Promise; - #[cfg(web_sys_unstable_apis)] - #[cfg(feature = "WebTransportSendStreamOptions")] - # [wasm_bindgen (method , structural , js_class = "WebTransport" , js_name = createBidirectionalStream)] - #[doc = "The `createBidirectionalStream()` method."] - #[doc = ""] - #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebTransport/createBidirectionalStream)"] - #[doc = ""] - #[doc = "*This API requires the following crate features to be activated: `WebTransport`, `WebTransportSendStreamOptions`*"] - #[doc = ""] - #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] - #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] - pub fn create_bidirectional_stream_with_options( - this: &WebTransport, - options: &WebTransportSendStreamOptions, - ) -> ::js_sys::Promise; - #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "WebTransport" , js_name = createBidirectionalStream)] #[doc = "The `createBidirectionalStream()` method."] #[doc = ""] @@ -378,43 +210,6 @@ extern "C" { options: &WebTransportSendStreamOptions, ) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "WebTransport" , js_name = createUnidirectionalStream)] - #[doc = "The `createUnidirectionalStream()` method."] - #[doc = ""] - #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebTransport/createUnidirectionalStream)"] - #[doc = ""] - #[doc = "*This API requires the following crate features to be activated: `WebTransport`*"] - #[doc = ""] - #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] - #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] - pub fn create_unidirectional_stream(this: &WebTransport) -> ::js_sys::Promise; - #[cfg(web_sys_unstable_apis)] - #[cfg(feature = "WebTransportSendStreamOptions")] - # [wasm_bindgen (method , structural , js_class = "WebTransport" , js_name = createUnidirectionalStream)] - #[doc = "The `createUnidirectionalStream()` method."] - #[doc = ""] - #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebTransport/createUnidirectionalStream)"] - #[doc = ""] - #[doc = "*This API requires the following crate features to be activated: `WebTransport`, `WebTransportSendStreamOptions`*"] - #[doc = ""] - #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] - #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] - pub fn create_unidirectional_stream_with_options( - this: &WebTransport, - options: &WebTransportSendStreamOptions, - ) -> ::js_sys::Promise; - #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "WebTransport" , js_name = getStats)] - #[doc = "The `getStats()` method."] - #[doc = ""] - #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebTransport/getStats)"] - #[doc = ""] - #[doc = "*This API requires the following crate features to be activated: `WebTransport`*"] - #[doc = ""] - #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] - #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] - pub fn get_stats(this: &WebTransport) -> ::js_sys::Promise; - #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "WebTransport" , js_name = getStats)] #[doc = "The `getStats()` method."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_WebTransportBidirectionalStream.rs b/crates/web-sys/src/features/gen_WebTransportBidirectionalStream.rs index e4d2ce590ff..a2196c25d2e 100644 --- a/crates/web-sys/src/features/gen_WebTransportBidirectionalStream.rs +++ b/crates/web-sys/src/features/gen_WebTransportBidirectionalStream.rs @@ -39,28 +39,4 @@ extern "C" { #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn writable(this: &WebTransportBidirectionalStream) -> WebTransportSendStream; - #[cfg(web_sys_unstable_apis)] - #[cfg(feature = "WebTransportReceiveStream")] - # [wasm_bindgen (structural , method , getter , js_class = "WebTransportBidirectionalStream" , js_name = readable)] - #[doc = "Getter for the `readable` field of this object."] - #[doc = ""] - #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebTransportBidirectionalStream/readable)"] - #[doc = ""] - #[doc = "*This API requires the following crate features to be activated: `WebTransportBidirectionalStream`, `WebTransportReceiveStream`*"] - #[doc = ""] - #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] - #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] - pub fn readable(this: &WebTransportBidirectionalStream) -> WebTransportReceiveStream; - #[cfg(web_sys_unstable_apis)] - #[cfg(feature = "WebTransportSendStream")] - # [wasm_bindgen (structural , method , getter , js_class = "WebTransportBidirectionalStream" , js_name = writable)] - #[doc = "Getter for the `writable` field of this object."] - #[doc = ""] - #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebTransportBidirectionalStream/writable)"] - #[doc = ""] - #[doc = "*This API requires the following crate features to be activated: `WebTransportBidirectionalStream`, `WebTransportSendStream`*"] - #[doc = ""] - #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] - #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] - pub fn writable(this: &WebTransportBidirectionalStream) -> WebTransportSendStream; } diff --git a/crates/web-sys/src/features/gen_WebTransportDatagramDuplexStream.rs b/crates/web-sys/src/features/gen_WebTransportDatagramDuplexStream.rs index cd6f08d9064..bd96f417051 100644 --- a/crates/web-sys/src/features/gen_WebTransportDatagramDuplexStream.rs +++ b/crates/web-sys/src/features/gen_WebTransportDatagramDuplexStream.rs @@ -138,127 +138,4 @@ extern "C" { #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_outgoing_high_water_mark(this: &WebTransportDatagramDuplexStream, value: f64); - #[cfg(web_sys_unstable_apis)] - #[cfg(feature = "ReadableStream")] - # [wasm_bindgen (structural , method , getter , js_class = "WebTransportDatagramDuplexStream" , js_name = readable)] - #[doc = "Getter for the `readable` field of this object."] - #[doc = ""] - #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebTransportDatagramDuplexStream/readable)"] - #[doc = ""] - #[doc = "*This API requires the following crate features to be activated: `ReadableStream`, `WebTransportDatagramDuplexStream`*"] - #[doc = ""] - #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] - #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] - pub fn readable(this: &WebTransportDatagramDuplexStream) -> ReadableStream; - #[cfg(web_sys_unstable_apis)] - #[cfg(feature = "WritableStream")] - # [wasm_bindgen (structural , method , getter , js_class = "WebTransportDatagramDuplexStream" , js_name = writable)] - #[doc = "Getter for the `writable` field of this object."] - #[doc = ""] - #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebTransportDatagramDuplexStream/writable)"] - #[doc = ""] - #[doc = "*This API requires the following crate features to be activated: `WebTransportDatagramDuplexStream`, `WritableStream`*"] - #[doc = ""] - #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] - #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] - pub fn writable(this: &WebTransportDatagramDuplexStream) -> WritableStream; - #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "WebTransportDatagramDuplexStream" , js_name = maxDatagramSize)] - #[doc = "Getter for the `maxDatagramSize` field of this object."] - #[doc = ""] - #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebTransportDatagramDuplexStream/maxDatagramSize)"] - #[doc = ""] - #[doc = "*This API requires the following crate features to be activated: `WebTransportDatagramDuplexStream`*"] - #[doc = ""] - #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] - #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] - pub fn max_datagram_size(this: &WebTransportDatagramDuplexStream) -> u32; - #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "WebTransportDatagramDuplexStream" , js_name = incomingMaxAge)] - #[doc = "Getter for the `incomingMaxAge` field of this object."] - #[doc = ""] - #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebTransportDatagramDuplexStream/incomingMaxAge)"] - #[doc = ""] - #[doc = "*This API requires the following crate features to be activated: `WebTransportDatagramDuplexStream`*"] - #[doc = ""] - #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] - #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] - pub fn incoming_max_age(this: &WebTransportDatagramDuplexStream) -> f64; - #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , setter , js_class = "WebTransportDatagramDuplexStream" , js_name = incomingMaxAge)] - #[doc = "Setter for the `incomingMaxAge` field of this object."] - #[doc = ""] - #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebTransportDatagramDuplexStream/incomingMaxAge)"] - #[doc = ""] - #[doc = "*This API requires the following crate features to be activated: `WebTransportDatagramDuplexStream`*"] - #[doc = ""] - #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] - #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] - pub fn set_incoming_max_age(this: &WebTransportDatagramDuplexStream, value: f64); - #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "WebTransportDatagramDuplexStream" , js_name = outgoingMaxAge)] - #[doc = "Getter for the `outgoingMaxAge` field of this object."] - #[doc = ""] - #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebTransportDatagramDuplexStream/outgoingMaxAge)"] - #[doc = ""] - #[doc = "*This API requires the following crate features to be activated: `WebTransportDatagramDuplexStream`*"] - #[doc = ""] - #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] - #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] - pub fn outgoing_max_age(this: &WebTransportDatagramDuplexStream) -> f64; - #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , setter , js_class = "WebTransportDatagramDuplexStream" , js_name = outgoingMaxAge)] - #[doc = "Setter for the `outgoingMaxAge` field of this object."] - #[doc = ""] - #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebTransportDatagramDuplexStream/outgoingMaxAge)"] - #[doc = ""] - #[doc = "*This API requires the following crate features to be activated: `WebTransportDatagramDuplexStream`*"] - #[doc = ""] - #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] - #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] - pub fn set_outgoing_max_age(this: &WebTransportDatagramDuplexStream, value: f64); - #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "WebTransportDatagramDuplexStream" , js_name = incomingHighWaterMark)] - #[doc = "Getter for the `incomingHighWaterMark` field of this object."] - #[doc = ""] - #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebTransportDatagramDuplexStream/incomingHighWaterMark)"] - #[doc = ""] - #[doc = "*This API requires the following crate features to be activated: `WebTransportDatagramDuplexStream`*"] - #[doc = ""] - #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] - #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] - pub fn incoming_high_water_mark(this: &WebTransportDatagramDuplexStream) -> f64; - #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , setter , js_class = "WebTransportDatagramDuplexStream" , js_name = incomingHighWaterMark)] - #[doc = "Setter for the `incomingHighWaterMark` field of this object."] - #[doc = ""] - #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebTransportDatagramDuplexStream/incomingHighWaterMark)"] - #[doc = ""] - #[doc = "*This API requires the following crate features to be activated: `WebTransportDatagramDuplexStream`*"] - #[doc = ""] - #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] - #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] - pub fn set_incoming_high_water_mark(this: &WebTransportDatagramDuplexStream, value: f64); - #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "WebTransportDatagramDuplexStream" , js_name = outgoingHighWaterMark)] - #[doc = "Getter for the `outgoingHighWaterMark` field of this object."] - #[doc = ""] - #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebTransportDatagramDuplexStream/outgoingHighWaterMark)"] - #[doc = ""] - #[doc = "*This API requires the following crate features to be activated: `WebTransportDatagramDuplexStream`*"] - #[doc = ""] - #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] - #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] - pub fn outgoing_high_water_mark(this: &WebTransportDatagramDuplexStream) -> f64; - #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , setter , js_class = "WebTransportDatagramDuplexStream" , js_name = outgoingHighWaterMark)] - #[doc = "Setter for the `outgoingHighWaterMark` field of this object."] - #[doc = ""] - #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebTransportDatagramDuplexStream/outgoingHighWaterMark)"] - #[doc = ""] - #[doc = "*This API requires the following crate features to be activated: `WebTransportDatagramDuplexStream`*"] - #[doc = ""] - #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] - #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] - pub fn set_outgoing_high_water_mark(this: &WebTransportDatagramDuplexStream, value: f64); } diff --git a/crates/web-sys/src/features/gen_WebTransportError.rs b/crates/web-sys/src/features/gen_WebTransportError.rs index c6778d528e1..029cd100ed9 100644 --- a/crates/web-sys/src/features/gen_WebTransportError.rs +++ b/crates/web-sys/src/features/gen_WebTransportError.rs @@ -39,66 +39,6 @@ extern "C" { #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn stream_error_code(this: &WebTransportError) -> Option; #[cfg(web_sys_unstable_apis)] - #[cfg(feature = "WebTransportErrorSource")] - # [wasm_bindgen (structural , method , getter , js_class = "WebTransportError" , js_name = source)] - #[doc = "Getter for the `source` field of this object."] - #[doc = ""] - #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebTransportError/source)"] - #[doc = ""] - #[doc = "*This API requires the following crate features to be activated: `WebTransportError`, `WebTransportErrorSource`*"] - #[doc = ""] - #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] - #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] - pub fn source(this: &WebTransportError) -> WebTransportErrorSource; - #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (structural , method , getter , js_class = "WebTransportError" , js_name = streamErrorCode)] - #[doc = "Getter for the `streamErrorCode` field of this object."] - #[doc = ""] - #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebTransportError/streamErrorCode)"] - #[doc = ""] - #[doc = "*This API requires the following crate features to be activated: `WebTransportError`*"] - #[doc = ""] - #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] - #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] - pub fn stream_error_code(this: &WebTransportError) -> Option; - #[cfg(web_sys_unstable_apis)] - #[wasm_bindgen(catch, constructor, js_class = "WebTransportError")] - #[doc = "The `new WebTransportError(..)` constructor, creating a new instance of `WebTransportError`."] - #[doc = ""] - #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebTransportError/WebTransportError)"] - #[doc = ""] - #[doc = "*This API requires the following crate features to be activated: `WebTransportError`*"] - #[doc = ""] - #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] - #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] - pub fn new() -> Result; - #[cfg(web_sys_unstable_apis)] - #[wasm_bindgen(catch, constructor, js_class = "WebTransportError")] - #[doc = "The `new WebTransportError(..)` constructor, creating a new instance of `WebTransportError`."] - #[doc = ""] - #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebTransportError/WebTransportError)"] - #[doc = ""] - #[doc = "*This API requires the following crate features to be activated: `WebTransportError`*"] - #[doc = ""] - #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] - #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] - pub fn new_with_message(message: &str) -> Result; - #[cfg(web_sys_unstable_apis)] - #[cfg(feature = "WebTransportErrorOptions")] - #[wasm_bindgen(catch, constructor, js_class = "WebTransportError")] - #[doc = "The `new WebTransportError(..)` constructor, creating a new instance of `WebTransportError`."] - #[doc = ""] - #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebTransportError/WebTransportError)"] - #[doc = ""] - #[doc = "*This API requires the following crate features to be activated: `WebTransportError`, `WebTransportErrorOptions`*"] - #[doc = ""] - #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] - #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] - pub fn new_with_message_and_options( - message: &str, - options: &WebTransportErrorOptions, - ) -> Result; - #[cfg(web_sys_unstable_apis)] #[wasm_bindgen(catch, constructor, js_class = "WebTransportError")] #[doc = "The `new WebTransportError(..)` constructor, creating a new instance of `WebTransportError`."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_WebTransportReceiveStream.rs b/crates/web-sys/src/features/gen_WebTransportReceiveStream.rs index 3262b431dce..86d8fd14f78 100644 --- a/crates/web-sys/src/features/gen_WebTransportReceiveStream.rs +++ b/crates/web-sys/src/features/gen_WebTransportReceiveStream.rs @@ -26,15 +26,4 @@ extern "C" { #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn get_stats(this: &WebTransportReceiveStream) -> ::js_sys::Promise; - #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "WebTransportReceiveStream" , js_name = getStats)] - #[doc = "The `getStats()` method."] - #[doc = ""] - #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebTransportReceiveStream/getStats)"] - #[doc = ""] - #[doc = "*This API requires the following crate features to be activated: `WebTransportReceiveStream`*"] - #[doc = ""] - #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] - #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] - pub fn get_stats(this: &WebTransportReceiveStream) -> ::js_sys::Promise; } diff --git a/crates/web-sys/src/features/gen_WebTransportSendStream.rs b/crates/web-sys/src/features/gen_WebTransportSendStream.rs index ad0901679df..09c145ec8bc 100644 --- a/crates/web-sys/src/features/gen_WebTransportSendStream.rs +++ b/crates/web-sys/src/features/gen_WebTransportSendStream.rs @@ -26,15 +26,4 @@ extern "C" { #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn get_stats(this: &WebTransportSendStream) -> ::js_sys::Promise; - #[cfg(web_sys_unstable_apis)] - # [wasm_bindgen (method , structural , js_class = "WebTransportSendStream" , js_name = getStats)] - #[doc = "The `getStats()` method."] - #[doc = ""] - #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebTransportSendStream/getStats)"] - #[doc = ""] - #[doc = "*This API requires the following crate features to be activated: `WebTransportSendStream`*"] - #[doc = ""] - #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] - #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] - pub fn get_stats(this: &WebTransportSendStream) -> ::js_sys::Promise; }