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