Skip to main content

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(
8        extends = "EventTarget",
9        extends = "::js_sys::Object",
10        js_name = "XMLHttpRequestEventTarget",
11        typescript_type = "XMLHttpRequestEventTarget"
12    )]
13    #[derive(Debug, Clone, PartialEq, Eq)]
14    #[doc = "The `XmlHttpRequestEventTarget` class."]
15    #[doc = ""]
16    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequestEventTarget)"]
17    #[doc = ""]
18    #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequestEventTarget`*"]
19    pub type XmlHttpRequestEventTarget;
20    #[wasm_bindgen(
21        method,
22        getter,
23        js_class = "XMLHttpRequestEventTarget",
24        js_name = "onloadstart"
25    )]
26    #[doc = "Getter for the `onloadstart` field of this object."]
27    #[doc = ""]
28    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequestEventTarget/onloadstart)"]
29    #[doc = ""]
30    #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequestEventTarget`*"]
31    pub fn onloadstart(this: &XmlHttpRequestEventTarget) -> Option<::js_sys::Function>;
32    #[wasm_bindgen(
33        method,
34        setter,
35        js_class = "XMLHttpRequestEventTarget",
36        js_name = "onloadstart"
37    )]
38    #[doc = "Setter for the `onloadstart` field of this object."]
39    #[doc = ""]
40    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequestEventTarget/onloadstart)"]
41    #[doc = ""]
42    #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequestEventTarget`*"]
43    pub fn set_onloadstart(this: &XmlHttpRequestEventTarget, value: Option<&::js_sys::Function>);
44    #[wasm_bindgen(
45        method,
46        getter,
47        js_class = "XMLHttpRequestEventTarget",
48        js_name = "onprogress"
49    )]
50    #[doc = "Getter for the `onprogress` field of this object."]
51    #[doc = ""]
52    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequestEventTarget/onprogress)"]
53    #[doc = ""]
54    #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequestEventTarget`*"]
55    pub fn onprogress(this: &XmlHttpRequestEventTarget) -> Option<::js_sys::Function>;
56    #[wasm_bindgen(
57        method,
58        setter,
59        js_class = "XMLHttpRequestEventTarget",
60        js_name = "onprogress"
61    )]
62    #[doc = "Setter for the `onprogress` field of this object."]
63    #[doc = ""]
64    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequestEventTarget/onprogress)"]
65    #[doc = ""]
66    #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequestEventTarget`*"]
67    pub fn set_onprogress(this: &XmlHttpRequestEventTarget, value: Option<&::js_sys::Function>);
68    #[wasm_bindgen(
69        method,
70        getter,
71        js_class = "XMLHttpRequestEventTarget",
72        js_name = "onabort"
73    )]
74    #[doc = "Getter for the `onabort` field of this object."]
75    #[doc = ""]
76    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequestEventTarget/onabort)"]
77    #[doc = ""]
78    #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequestEventTarget`*"]
79    pub fn onabort(this: &XmlHttpRequestEventTarget) -> Option<::js_sys::Function>;
80    #[wasm_bindgen(
81        method,
82        setter,
83        js_class = "XMLHttpRequestEventTarget",
84        js_name = "onabort"
85    )]
86    #[doc = "Setter for the `onabort` field of this object."]
87    #[doc = ""]
88    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequestEventTarget/onabort)"]
89    #[doc = ""]
90    #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequestEventTarget`*"]
91    pub fn set_onabort(this: &XmlHttpRequestEventTarget, value: Option<&::js_sys::Function>);
92    #[wasm_bindgen(
93        method,
94        getter,
95        js_class = "XMLHttpRequestEventTarget",
96        js_name = "onerror"
97    )]
98    #[doc = "Getter for the `onerror` field of this object."]
99    #[doc = ""]
100    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequestEventTarget/onerror)"]
101    #[doc = ""]
102    #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequestEventTarget`*"]
103    pub fn onerror(this: &XmlHttpRequestEventTarget) -> Option<::js_sys::Function>;
104    #[wasm_bindgen(
105        method,
106        setter,
107        js_class = "XMLHttpRequestEventTarget",
108        js_name = "onerror"
109    )]
110    #[doc = "Setter for the `onerror` field of this object."]
111    #[doc = ""]
112    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequestEventTarget/onerror)"]
113    #[doc = ""]
114    #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequestEventTarget`*"]
115    pub fn set_onerror(this: &XmlHttpRequestEventTarget, value: Option<&::js_sys::Function>);
116    #[wasm_bindgen(
117        method,
118        getter,
119        js_class = "XMLHttpRequestEventTarget",
120        js_name = "onload"
121    )]
122    #[doc = "Getter for the `onload` field of this object."]
123    #[doc = ""]
124    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequestEventTarget/onload)"]
125    #[doc = ""]
126    #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequestEventTarget`*"]
127    pub fn onload(this: &XmlHttpRequestEventTarget) -> Option<::js_sys::Function>;
128    #[wasm_bindgen(
129        method,
130        setter,
131        js_class = "XMLHttpRequestEventTarget",
132        js_name = "onload"
133    )]
134    #[doc = "Setter for the `onload` field of this object."]
135    #[doc = ""]
136    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequestEventTarget/onload)"]
137    #[doc = ""]
138    #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequestEventTarget`*"]
139    pub fn set_onload(this: &XmlHttpRequestEventTarget, value: Option<&::js_sys::Function>);
140    #[wasm_bindgen(
141        method,
142        getter,
143        js_class = "XMLHttpRequestEventTarget",
144        js_name = "ontimeout"
145    )]
146    #[doc = "Getter for the `ontimeout` field of this object."]
147    #[doc = ""]
148    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequestEventTarget/ontimeout)"]
149    #[doc = ""]
150    #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequestEventTarget`*"]
151    pub fn ontimeout(this: &XmlHttpRequestEventTarget) -> Option<::js_sys::Function>;
152    #[wasm_bindgen(
153        method,
154        setter,
155        js_class = "XMLHttpRequestEventTarget",
156        js_name = "ontimeout"
157    )]
158    #[doc = "Setter for the `ontimeout` field of this object."]
159    #[doc = ""]
160    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequestEventTarget/ontimeout)"]
161    #[doc = ""]
162    #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequestEventTarget`*"]
163    pub fn set_ontimeout(this: &XmlHttpRequestEventTarget, value: Option<&::js_sys::Function>);
164    #[wasm_bindgen(
165        method,
166        getter,
167        js_class = "XMLHttpRequestEventTarget",
168        js_name = "onloadend"
169    )]
170    #[doc = "Getter for the `onloadend` field of this object."]
171    #[doc = ""]
172    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequestEventTarget/onloadend)"]
173    #[doc = ""]
174    #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequestEventTarget`*"]
175    pub fn onloadend(this: &XmlHttpRequestEventTarget) -> Option<::js_sys::Function>;
176    #[wasm_bindgen(
177        method,
178        setter,
179        js_class = "XMLHttpRequestEventTarget",
180        js_name = "onloadend"
181    )]
182    #[doc = "Setter for the `onloadend` field of this object."]
183    #[doc = ""]
184    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequestEventTarget/onloadend)"]
185    #[doc = ""]
186    #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequestEventTarget`*"]
187    pub fn set_onloadend(this: &XmlHttpRequestEventTarget, value: Option<&::js_sys::Function>);
188}