web_sys/features/
gen_FetchObserver.rs

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