maxcountryman_web_sys/features/
gen_FetchObserver.rs1#![allow(unused_imports)]
2use super::*;
3use wasm_bindgen::prelude::*;
4#[wasm_bindgen]
5extern "C" {
6 # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = FetchObserver , typescript_type = "FetchObserver")]
7 #[derive(Debug, Clone, PartialEq, Eq)]
8 #[doc = "The `FetchObserver` class."]
9 #[doc = ""]
10 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FetchObserver)"]
11 #[doc = ""]
12 #[doc = "*This API requires the following crate features to be activated: `FetchObserver`*"]
13 pub type FetchObserver;
14 #[cfg(feature = "FetchState")]
15 # [wasm_bindgen (structural , method , getter , js_class = "FetchObserver" , js_name = state)]
16 #[doc = "Getter for the `state` field of this object."]
17 #[doc = ""]
18 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FetchObserver/state)"]
19 #[doc = ""]
20 #[doc = "*This API requires the following crate features to be activated: `FetchObserver`, `FetchState`*"]
21 pub fn state(this: &FetchObserver) -> FetchState;
22 # [wasm_bindgen (structural , method , getter , js_class = "FetchObserver" , js_name = onstatechange)]
23 #[doc = "Getter for the `onstatechange` field of this object."]
24 #[doc = ""]
25 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FetchObserver/onstatechange)"]
26 #[doc = ""]
27 #[doc = "*This API requires the following crate features to be activated: `FetchObserver`*"]
28 pub fn onstatechange(this: &FetchObserver) -> Option<::js_sys::Function>;
29 # [wasm_bindgen (structural , method , setter , js_class = "FetchObserver" , js_name = onstatechange)]
30 #[doc = "Setter for the `onstatechange` field of this object."]
31 #[doc = ""]
32 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FetchObserver/onstatechange)"]
33 #[doc = ""]
34 #[doc = "*This API requires the following crate features to be activated: `FetchObserver`*"]
35 pub fn set_onstatechange(this: &FetchObserver, value: Option<&::js_sys::Function>);
36 # [wasm_bindgen (structural , method , getter , js_class = "FetchObserver" , js_name = onrequestprogress)]
37 #[doc = "Getter for the `onrequestprogress` field of this object."]
38 #[doc = ""]
39 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FetchObserver/onrequestprogress)"]
40 #[doc = ""]
41 #[doc = "*This API requires the following crate features to be activated: `FetchObserver`*"]
42 pub fn onrequestprogress(this: &FetchObserver) -> Option<::js_sys::Function>;
43 # [wasm_bindgen (structural , method , setter , js_class = "FetchObserver" , js_name = onrequestprogress)]
44 #[doc = "Setter for the `onrequestprogress` field of this object."]
45 #[doc = ""]
46 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FetchObserver/onrequestprogress)"]
47 #[doc = ""]
48 #[doc = "*This API requires the following crate features to be activated: `FetchObserver`*"]
49 pub fn set_onrequestprogress(this: &FetchObserver, value: Option<&::js_sys::Function>);
50 # [wasm_bindgen (structural , method , getter , js_class = "FetchObserver" , js_name = onresponseprogress)]
51 #[doc = "Getter for the `onresponseprogress` field of this object."]
52 #[doc = ""]
53 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FetchObserver/onresponseprogress)"]
54 #[doc = ""]
55 #[doc = "*This API requires the following crate features to be activated: `FetchObserver`*"]
56 pub fn onresponseprogress(this: &FetchObserver) -> Option<::js_sys::Function>;
57 # [wasm_bindgen (structural , method , setter , js_class = "FetchObserver" , js_name = onresponseprogress)]
58 #[doc = "Setter for the `onresponseprogress` field of this object."]
59 #[doc = ""]
60 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FetchObserver/onresponseprogress)"]
61 #[doc = ""]
62 #[doc = "*This API requires the following crate features to be activated: `FetchObserver`*"]
63 pub fn set_onresponseprogress(this: &FetchObserver, value: Option<&::js_sys::Function>);
64}