| 1 | #![allow (unused_imports)] |
| 2 | #![allow (clippy::all)] |
| 3 | use super::*; |
| 4 | use wasm_bindgen::prelude::*; |
| 5 | #[wasm_bindgen ] |
| 6 | unsafeextern "C" { |
| 7 | # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ReadableStreamDefaultController , typescript_type = "ReadableStreamDefaultController" )] |
| 8 | #[derive (Debug, Clone, PartialEq, Eq)] |
| 9 | #[doc = "The `ReadableStreamDefaultController` class." ] |
| 10 | #[doc = "" ] |
| 11 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ReadableStreamDefaultController)" ] |
| 12 | #[doc = "" ] |
| 13 | #[doc = "*This API requires the following crate features to be activated: `ReadableStreamDefaultController`*" ] |
| 14 | pub type ReadableStreamDefaultController; |
| 15 | # [wasm_bindgen (structural , method , getter , js_class = "ReadableStreamDefaultController" , js_name = desiredSize)] |
| 16 | #[doc = "Getter for the `desiredSize` field of this object." ] |
| 17 | #[doc = "" ] |
| 18 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ReadableStreamDefaultController/desiredSize)" ] |
| 19 | #[doc = "" ] |
| 20 | #[doc = "*This API requires the following crate features to be activated: `ReadableStreamDefaultController`*" ] |
| 21 | pub unsafefn desired_size(this: &ReadableStreamDefaultController) -> Option<f64>; |
| 22 | # [wasm_bindgen (catch , method , structural , js_class = "ReadableStreamDefaultController" , js_name = close)] |
| 23 | #[doc = "The `close()` method." ] |
| 24 | #[doc = "" ] |
| 25 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ReadableStreamDefaultController/close)" ] |
| 26 | #[doc = "" ] |
| 27 | #[doc = "*This API requires the following crate features to be activated: `ReadableStreamDefaultController`*" ] |
| 28 | pub unsafefn close(this: &ReadableStreamDefaultController) -> Result<(), JsValue>; |
| 29 | # [wasm_bindgen (catch , method , structural , js_class = "ReadableStreamDefaultController" , js_name = enqueue)] |
| 30 | #[doc = "The `enqueue()` method." ] |
| 31 | #[doc = "" ] |
| 32 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ReadableStreamDefaultController/enqueue)" ] |
| 33 | #[doc = "" ] |
| 34 | #[doc = "*This API requires the following crate features to be activated: `ReadableStreamDefaultController`*" ] |
| 35 | pub unsafefn enqueue(this: &ReadableStreamDefaultController) -> Result<(), JsValue>; |
| 36 | # [wasm_bindgen (catch , method , structural , js_class = "ReadableStreamDefaultController" , js_name = enqueue)] |
| 37 | #[doc = "The `enqueue()` method." ] |
| 38 | #[doc = "" ] |
| 39 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ReadableStreamDefaultController/enqueue)" ] |
| 40 | #[doc = "" ] |
| 41 | #[doc = "*This API requires the following crate features to be activated: `ReadableStreamDefaultController`*" ] |
| 42 | pub unsafefn enqueue_with_chunk( |
| 43 | this: &ReadableStreamDefaultController, |
| 44 | chunk: &::wasm_bindgen::JsValue, |
| 45 | ) -> Result<(), JsValue>; |
| 46 | # [wasm_bindgen (method , structural , js_class = "ReadableStreamDefaultController" , js_name = error)] |
| 47 | #[doc = "The `error()` method." ] |
| 48 | #[doc = "" ] |
| 49 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ReadableStreamDefaultController/error)" ] |
| 50 | #[doc = "" ] |
| 51 | #[doc = "*This API requires the following crate features to be activated: `ReadableStreamDefaultController`*" ] |
| 52 | pub unsafefn error(this: &ReadableStreamDefaultController); |
| 53 | # [wasm_bindgen (method , structural , js_class = "ReadableStreamDefaultController" , js_name = error)] |
| 54 | #[doc = "The `error()` method." ] |
| 55 | #[doc = "" ] |
| 56 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ReadableStreamDefaultController/error)" ] |
| 57 | #[doc = "" ] |
| 58 | #[doc = "*This API requires the following crate features to be activated: `ReadableStreamDefaultController`*" ] |
| 59 | pub unsafefn error_with_e(this: &ReadableStreamDefaultController, e: &::wasm_bindgen::JsValue); |
| 60 | } |
| 61 | |