web_sys/features/
gen_DomRequest.rs

1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[wasm_bindgen]
6extern "C" {
7    # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = DOMRequest , typescript_type = "DOMRequest")]
8    #[derive(Debug, Clone, PartialEq, Eq)]
9    #[doc = "The `DomRequest` class."]
10    #[doc = ""]
11    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRequest)"]
12    #[doc = ""]
13    #[doc = "*This API requires the following crate features to be activated: `DomRequest`*"]
14    pub type DomRequest;
15    #[cfg(feature = "DomRequestReadyState")]
16    # [wasm_bindgen (structural , method , getter , js_class = "DOMRequest" , js_name = readyState)]
17    #[doc = "Getter for the `readyState` field of this object."]
18    #[doc = ""]
19    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRequest/readyState)"]
20    #[doc = ""]
21    #[doc = "*This API requires the following crate features to be activated: `DomRequest`, `DomRequestReadyState`*"]
22    pub fn ready_state(this: &DomRequest) -> DomRequestReadyState;
23    # [wasm_bindgen (structural , method , getter , js_class = "DOMRequest" , js_name = result)]
24    #[doc = "Getter for the `result` field of this object."]
25    #[doc = ""]
26    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRequest/result)"]
27    #[doc = ""]
28    #[doc = "*This API requires the following crate features to be activated: `DomRequest`*"]
29    pub fn result(this: &DomRequest) -> ::wasm_bindgen::JsValue;
30    #[cfg(feature = "DomException")]
31    # [wasm_bindgen (structural , method , getter , js_class = "DOMRequest" , js_name = error)]
32    #[doc = "Getter for the `error` field of this object."]
33    #[doc = ""]
34    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRequest/error)"]
35    #[doc = ""]
36    #[doc = "*This API requires the following crate features to be activated: `DomException`, `DomRequest`*"]
37    pub fn error(this: &DomRequest) -> Option<DomException>;
38    # [wasm_bindgen (structural , method , getter , js_class = "DOMRequest" , js_name = onsuccess)]
39    #[doc = "Getter for the `onsuccess` field of this object."]
40    #[doc = ""]
41    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRequest/onsuccess)"]
42    #[doc = ""]
43    #[doc = "*This API requires the following crate features to be activated: `DomRequest`*"]
44    pub fn onsuccess(this: &DomRequest) -> Option<::js_sys::Function>;
45    # [wasm_bindgen (structural , method , setter , js_class = "DOMRequest" , js_name = onsuccess)]
46    #[doc = "Setter for the `onsuccess` field of this object."]
47    #[doc = ""]
48    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRequest/onsuccess)"]
49    #[doc = ""]
50    #[doc = "*This API requires the following crate features to be activated: `DomRequest`*"]
51    pub fn set_onsuccess(this: &DomRequest, value: Option<&::js_sys::Function>);
52    # [wasm_bindgen (structural , method , getter , js_class = "DOMRequest" , js_name = onerror)]
53    #[doc = "Getter for the `onerror` field of this object."]
54    #[doc = ""]
55    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRequest/onerror)"]
56    #[doc = ""]
57    #[doc = "*This API requires the following crate features to be activated: `DomRequest`*"]
58    pub fn onerror(this: &DomRequest) -> Option<::js_sys::Function>;
59    # [wasm_bindgen (structural , method , setter , js_class = "DOMRequest" , js_name = onerror)]
60    #[doc = "Setter for the `onerror` field of this object."]
61    #[doc = ""]
62    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRequest/onerror)"]
63    #[doc = ""]
64    #[doc = "*This API requires the following crate features to be activated: `DomRequest`*"]
65    pub fn set_onerror(this: &DomRequest, value: Option<&::js_sys::Function>);
66    # [wasm_bindgen (catch , method , structural , js_class = "DOMRequest" , js_name = then)]
67    #[doc = "The `then()` method."]
68    #[doc = ""]
69    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRequest/then)"]
70    #[doc = ""]
71    #[doc = "*This API requires the following crate features to be activated: `DomRequest`*"]
72    pub fn then(this: &DomRequest) -> Result<::wasm_bindgen::JsValue, JsValue>;
73    # [wasm_bindgen (catch , method , structural , js_class = "DOMRequest" , js_name = then)]
74    #[doc = "The `then()` method."]
75    #[doc = ""]
76    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRequest/then)"]
77    #[doc = ""]
78    #[doc = "*This API requires the following crate features to be activated: `DomRequest`*"]
79    pub fn then_with_fulfill_callback(
80        this: &DomRequest,
81        fulfill_callback: Option<&::js_sys::Function>,
82    ) -> Result<::wasm_bindgen::JsValue, JsValue>;
83    # [wasm_bindgen (catch , method , structural , js_class = "DOMRequest" , js_name = then)]
84    #[doc = "The `then()` method."]
85    #[doc = ""]
86    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRequest/then)"]
87    #[doc = ""]
88    #[doc = "*This API requires the following crate features to be activated: `DomRequest`*"]
89    pub fn then_with_fulfill_callback_and_reject_callback(
90        this: &DomRequest,
91        fulfill_callback: Option<&::js_sys::Function>,
92        reject_callback: Option<&::js_sys::Function>,
93    ) -> Result<::wasm_bindgen::JsValue, JsValue>;
94}