1 #![allow(unused_imports)] 2 use super::*; 3 use wasm_bindgen::prelude::*; 4 #[cfg(web_sys_unstable_apis)] 5 #[wasm_bindgen] 6 extern "C" { 7 # [wasm_bindgen (extends = :: js_sys :: Object , js_name = TransformStream , typescript_type = "TransformStream")] 8 #[derive(Debug, Clone, PartialEq, Eq)] 9 #[doc = "The `TransformStream` class."] 10 #[doc = ""] 11 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TransformStream)"] 12 #[doc = ""] 13 #[doc = "*This API requires the following crate features to be activated: `TransformStream`*"] 14 #[doc = ""] 15 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] 16 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] 17 pub type TransformStream; 18 #[cfg(web_sys_unstable_apis)] 19 #[cfg(feature = "ReadableStream")] 20 # [wasm_bindgen (structural , method , getter , js_class = "TransformStream" , js_name = readable)] 21 #[doc = "Getter for the `readable` field of this object."] 22 #[doc = ""] 23 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TransformStream/readable)"] 24 #[doc = ""] 25 #[doc = "*This API requires the following crate features to be activated: `ReadableStream`, `TransformStream`*"] 26 #[doc = ""] 27 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] 28 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] readable(this: &TransformStream) -> ReadableStream29 pub fn readable(this: &TransformStream) -> ReadableStream; 30 #[cfg(web_sys_unstable_apis)] 31 #[cfg(feature = "WritableStream")] 32 # [wasm_bindgen (structural , method , getter , js_class = "TransformStream" , js_name = writable)] 33 #[doc = "Getter for the `writable` field of this object."] 34 #[doc = ""] 35 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TransformStream/writable)"] 36 #[doc = ""] 37 #[doc = "*This API requires the following crate features to be activated: `TransformStream`, `WritableStream`*"] 38 #[doc = ""] 39 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] 40 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] writable(this: &TransformStream) -> WritableStream41 pub fn writable(this: &TransformStream) -> WritableStream; 42 #[cfg(web_sys_unstable_apis)] 43 #[wasm_bindgen(catch, constructor, js_class = "TransformStream")] 44 #[doc = "The `new TransformStream(..)` constructor, creating a new instance of `TransformStream`."] 45 #[doc = ""] 46 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TransformStream/TransformStream)"] 47 #[doc = ""] 48 #[doc = "*This API requires the following crate features to be activated: `TransformStream`*"] 49 #[doc = ""] 50 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] 51 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] new() -> Result<TransformStream, JsValue>52 pub fn new() -> Result<TransformStream, JsValue>; 53 #[cfg(web_sys_unstable_apis)] 54 #[wasm_bindgen(catch, constructor, js_class = "TransformStream")] 55 #[doc = "The `new TransformStream(..)` constructor, creating a new instance of `TransformStream`."] 56 #[doc = ""] 57 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TransformStream/TransformStream)"] 58 #[doc = ""] 59 #[doc = "*This API requires the following crate features to be activated: `TransformStream`*"] 60 #[doc = ""] 61 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] 62 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] new_with_transformer(transformer: &::js_sys::Object) -> Result<TransformStream, JsValue>63 pub fn new_with_transformer(transformer: &::js_sys::Object) 64 -> Result<TransformStream, JsValue>; 65 #[cfg(web_sys_unstable_apis)] 66 #[cfg(feature = "QueuingStrategy")] 67 #[wasm_bindgen(catch, constructor, js_class = "TransformStream")] 68 #[doc = "The `new TransformStream(..)` constructor, creating a new instance of `TransformStream`."] 69 #[doc = ""] 70 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TransformStream/TransformStream)"] 71 #[doc = ""] 72 #[doc = "*This API requires the following crate features to be activated: `QueuingStrategy`, `TransformStream`*"] 73 #[doc = ""] 74 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] 75 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] new_with_transformer_and_writable_strategy( transformer: &::js_sys::Object, writable_strategy: &QueuingStrategy, ) -> Result<TransformStream, JsValue>76 pub fn new_with_transformer_and_writable_strategy( 77 transformer: &::js_sys::Object, 78 writable_strategy: &QueuingStrategy, 79 ) -> Result<TransformStream, JsValue>; 80 #[cfg(web_sys_unstable_apis)] 81 #[cfg(feature = "QueuingStrategy")] 82 #[wasm_bindgen(catch, constructor, js_class = "TransformStream")] 83 #[doc = "The `new TransformStream(..)` constructor, creating a new instance of `TransformStream`."] 84 #[doc = ""] 85 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TransformStream/TransformStream)"] 86 #[doc = ""] 87 #[doc = "*This API requires the following crate features to be activated: `QueuingStrategy`, `TransformStream`*"] 88 #[doc = ""] 89 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] 90 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] new_with_transformer_and_writable_strategy_and_readable_strategy( transformer: &::js_sys::Object, writable_strategy: &QueuingStrategy, readable_strategy: &QueuingStrategy, ) -> Result<TransformStream, JsValue>91 pub fn new_with_transformer_and_writable_strategy_and_readable_strategy( 92 transformer: &::js_sys::Object, 93 writable_strategy: &QueuingStrategy, 94 readable_strategy: &QueuingStrategy, 95 ) -> Result<TransformStream, JsValue>; 96 } 97