web_sys/features/
gen_WritableStreamDefaultController.rs

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 = WritableStreamDefaultController , typescript_type = "WritableStreamDefaultController")]
8    #[derive(Debug, Clone, PartialEq, Eq)]
9    #[doc = "The `WritableStreamDefaultController` class."]
10    #[doc = ""]
11    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WritableStreamDefaultController)"]
12    #[doc = ""]
13    #[doc = "*This API requires the following crate features to be activated: `WritableStreamDefaultController`*"]
14    pub type WritableStreamDefaultController;
15    #[cfg(feature = "AbortSignal")]
16    # [wasm_bindgen (structural , method , getter , js_class = "WritableStreamDefaultController" , js_name = signal)]
17    #[doc = "Getter for the `signal` field of this object."]
18    #[doc = ""]
19    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WritableStreamDefaultController/signal)"]
20    #[doc = ""]
21    #[doc = "*This API requires the following crate features to be activated: `AbortSignal`, `WritableStreamDefaultController`*"]
22    pub fn signal(this: &WritableStreamDefaultController) -> AbortSignal;
23    # [wasm_bindgen (method , structural , js_class = "WritableStreamDefaultController" , js_name = error)]
24    #[doc = "The `error()` method."]
25    #[doc = ""]
26    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WritableStreamDefaultController/error)"]
27    #[doc = ""]
28    #[doc = "*This API requires the following crate features to be activated: `WritableStreamDefaultController`*"]
29    pub fn error(this: &WritableStreamDefaultController);
30    # [wasm_bindgen (method , structural , js_class = "WritableStreamDefaultController" , js_name = error)]
31    #[doc = "The `error()` method."]
32    #[doc = ""]
33    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WritableStreamDefaultController/error)"]
34    #[doc = ""]
35    #[doc = "*This API requires the following crate features to be activated: `WritableStreamDefaultController`*"]
36    pub fn error_with_e(this: &WritableStreamDefaultController, e: &::wasm_bindgen::JsValue);
37}