Skip to content

Commit

Permalink
remove duplicate bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
mriise committed Apr 24, 2023
1 parent 3f51031 commit b3860a0
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 434 deletions.
205 changes: 0 additions & 205 deletions crates/web-sys/src/features/gen_WebTransport.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<WebTransport, JsValue>;
#[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<WebTransport, JsValue>;
#[cfg(web_sys_unstable_apis)]
#[wasm_bindgen(catch, constructor, js_class = "WebTransport")]
#[doc = "The `new WebTransport(..)` constructor, creating a new instance of `WebTransport`."]
#[doc = ""]
Expand Down Expand Up @@ -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 = ""]
Expand Down Expand Up @@ -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 = ""]
Expand Down
24 changes: 0 additions & 24 deletions crates/web-sys/src/features/gen_WebTransportBidirectionalStream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Loading

0 comments on commit b3860a0

Please sign in to comment.