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