web_sys/features/
gen_XmlHttpRequestEventTarget.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 = XMLHttpRequestEventTarget , typescript_type = "XMLHttpRequestEventTarget")]
8    #[derive(Debug, Clone, PartialEq, Eq)]
9    #[doc = "The `XmlHttpRequestEventTarget` class."]
10    #[doc = ""]
11    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequestEventTarget)"]
12    #[doc = ""]
13    #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequestEventTarget`*"]
14    pub type XmlHttpRequestEventTarget;
15    # [wasm_bindgen (structural , method , getter , js_class = "XMLHttpRequestEventTarget" , js_name = onloadstart)]
16    #[doc = "Getter for the `onloadstart` field of this object."]
17    #[doc = ""]
18    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequestEventTarget/onloadstart)"]
19    #[doc = ""]
20    #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequestEventTarget`*"]
21    pub fn onloadstart(this: &XmlHttpRequestEventTarget) -> Option<::js_sys::Function>;
22    # [wasm_bindgen (structural , method , setter , js_class = "XMLHttpRequestEventTarget" , js_name = onloadstart)]
23    #[doc = "Setter for the `onloadstart` field of this object."]
24    #[doc = ""]
25    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequestEventTarget/onloadstart)"]
26    #[doc = ""]
27    #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequestEventTarget`*"]
28    pub fn set_onloadstart(this: &XmlHttpRequestEventTarget, value: Option<&::js_sys::Function>);
29    # [wasm_bindgen (structural , method , getter , js_class = "XMLHttpRequestEventTarget" , js_name = onprogress)]
30    #[doc = "Getter for the `onprogress` field of this object."]
31    #[doc = ""]
32    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequestEventTarget/onprogress)"]
33    #[doc = ""]
34    #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequestEventTarget`*"]
35    pub fn onprogress(this: &XmlHttpRequestEventTarget) -> Option<::js_sys::Function>;
36    # [wasm_bindgen (structural , method , setter , js_class = "XMLHttpRequestEventTarget" , js_name = onprogress)]
37    #[doc = "Setter for the `onprogress` field of this object."]
38    #[doc = ""]
39    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequestEventTarget/onprogress)"]
40    #[doc = ""]
41    #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequestEventTarget`*"]
42    pub fn set_onprogress(this: &XmlHttpRequestEventTarget, value: Option<&::js_sys::Function>);
43    # [wasm_bindgen (structural , method , getter , js_class = "XMLHttpRequestEventTarget" , js_name = onabort)]
44    #[doc = "Getter for the `onabort` field of this object."]
45    #[doc = ""]
46    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequestEventTarget/onabort)"]
47    #[doc = ""]
48    #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequestEventTarget`*"]
49    pub fn onabort(this: &XmlHttpRequestEventTarget) -> Option<::js_sys::Function>;
50    # [wasm_bindgen (structural , method , setter , js_class = "XMLHttpRequestEventTarget" , js_name = onabort)]
51    #[doc = "Setter for the `onabort` field of this object."]
52    #[doc = ""]
53    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequestEventTarget/onabort)"]
54    #[doc = ""]
55    #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequestEventTarget`*"]
56    pub fn set_onabort(this: &XmlHttpRequestEventTarget, value: Option<&::js_sys::Function>);
57    # [wasm_bindgen (structural , method , getter , js_class = "XMLHttpRequestEventTarget" , js_name = onerror)]
58    #[doc = "Getter for the `onerror` field of this object."]
59    #[doc = ""]
60    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequestEventTarget/onerror)"]
61    #[doc = ""]
62    #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequestEventTarget`*"]
63    pub fn onerror(this: &XmlHttpRequestEventTarget) -> Option<::js_sys::Function>;
64    # [wasm_bindgen (structural , method , setter , js_class = "XMLHttpRequestEventTarget" , js_name = onerror)]
65    #[doc = "Setter for the `onerror` field of this object."]
66    #[doc = ""]
67    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequestEventTarget/onerror)"]
68    #[doc = ""]
69    #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequestEventTarget`*"]
70    pub fn set_onerror(this: &XmlHttpRequestEventTarget, value: Option<&::js_sys::Function>);
71    # [wasm_bindgen (structural , method , getter , js_class = "XMLHttpRequestEventTarget" , js_name = onload)]
72    #[doc = "Getter for the `onload` field of this object."]
73    #[doc = ""]
74    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequestEventTarget/onload)"]
75    #[doc = ""]
76    #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequestEventTarget`*"]
77    pub fn onload(this: &XmlHttpRequestEventTarget) -> Option<::js_sys::Function>;
78    # [wasm_bindgen (structural , method , setter , js_class = "XMLHttpRequestEventTarget" , js_name = onload)]
79    #[doc = "Setter for the `onload` field of this object."]
80    #[doc = ""]
81    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequestEventTarget/onload)"]
82    #[doc = ""]
83    #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequestEventTarget`*"]
84    pub fn set_onload(this: &XmlHttpRequestEventTarget, value: Option<&::js_sys::Function>);
85    # [wasm_bindgen (structural , method , getter , js_class = "XMLHttpRequestEventTarget" , js_name = ontimeout)]
86    #[doc = "Getter for the `ontimeout` field of this object."]
87    #[doc = ""]
88    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequestEventTarget/ontimeout)"]
89    #[doc = ""]
90    #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequestEventTarget`*"]
91    pub fn ontimeout(this: &XmlHttpRequestEventTarget) -> Option<::js_sys::Function>;
92    # [wasm_bindgen (structural , method , setter , js_class = "XMLHttpRequestEventTarget" , js_name = ontimeout)]
93    #[doc = "Setter for the `ontimeout` field of this object."]
94    #[doc = ""]
95    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequestEventTarget/ontimeout)"]
96    #[doc = ""]
97    #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequestEventTarget`*"]
98    pub fn set_ontimeout(this: &XmlHttpRequestEventTarget, value: Option<&::js_sys::Function>);
99    # [wasm_bindgen (structural , method , getter , js_class = "XMLHttpRequestEventTarget" , js_name = onloadend)]
100    #[doc = "Getter for the `onloadend` field of this object."]
101    #[doc = ""]
102    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequestEventTarget/onloadend)"]
103    #[doc = ""]
104    #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequestEventTarget`*"]
105    pub fn onloadend(this: &XmlHttpRequestEventTarget) -> Option<::js_sys::Function>;
106    # [wasm_bindgen (structural , method , setter , js_class = "XMLHttpRequestEventTarget" , js_name = onloadend)]
107    #[doc = "Setter for the `onloadend` field of this object."]
108    #[doc = ""]
109    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequestEventTarget/onloadend)"]
110    #[doc = ""]
111    #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequestEventTarget`*"]
112    pub fn set_onloadend(this: &XmlHttpRequestEventTarget, value: Option<&::js_sys::Function>);
113}