Skip to main content

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