| 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 = AbortController , typescript_type = "AbortController" )] |
| 8 | #[derive (Debug, Clone, PartialEq, Eq)] |
| 9 | #[doc = "The `AbortController` class." ] |
| 10 | #[doc = "" ] |
| 11 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AbortController)" ] |
| 12 | #[doc = "" ] |
| 13 | #[doc = "*This API requires the following crate features to be activated: `AbortController`*" ] |
| 14 | pub type AbortController; |
| 15 | #[cfg (feature = "AbortSignal" )] |
| 16 | # [wasm_bindgen (structural , method , getter , js_class = "AbortController" , 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/AbortController/signal)" ] |
| 20 | #[doc = "" ] |
| 21 | #[doc = "*This API requires the following crate features to be activated: `AbortController`, `AbortSignal`*" ] |
| 22 | pub unsafefn signal(this: &AbortController) -> AbortSignal; |
| 23 | #[wasm_bindgen (catch, constructor, js_class = "AbortController" )] |
| 24 | #[doc = "The `new AbortController(..)` constructor, creating a new instance of `AbortController`." ] |
| 25 | #[doc = "" ] |
| 26 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AbortController/AbortController)" ] |
| 27 | #[doc = "" ] |
| 28 | #[doc = "*This API requires the following crate features to be activated: `AbortController`*" ] |
| 29 | pub unsafefn new() -> Result<AbortController, JsValue>; |
| 30 | # [wasm_bindgen (method , structural , js_class = "AbortController" , js_name = abort)] |
| 31 | #[doc = "The `abort()` method." ] |
| 32 | #[doc = "" ] |
| 33 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort)" ] |
| 34 | #[doc = "" ] |
| 35 | #[doc = "*This API requires the following crate features to be activated: `AbortController`*" ] |
| 36 | pub unsafefn abort(this: &AbortController); |
| 37 | # [wasm_bindgen (method , structural , js_class = "AbortController" , js_name = abort)] |
| 38 | #[doc = "The `abort()` method." ] |
| 39 | #[doc = "" ] |
| 40 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort)" ] |
| 41 | #[doc = "" ] |
| 42 | #[doc = "*This API requires the following crate features to be activated: `AbortController`*" ] |
| 43 | pub unsafefn abort_with_reason(this: &AbortController, reason: &::wasm_bindgen::JsValue); |
| 44 | } |
| 45 | |