diff options
Diffstat (limited to 'vendor/web-sys/src/features/gen_FetchObserver.rs')
-rw-r--r-- | vendor/web-sys/src/features/gen_FetchObserver.rs | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/vendor/web-sys/src/features/gen_FetchObserver.rs b/vendor/web-sys/src/features/gen_FetchObserver.rs new file mode 100644 index 000000000..e08d9341c --- /dev/null +++ b/vendor/web-sys/src/features/gen_FetchObserver.rs @@ -0,0 +1,64 @@ +#![allow(unused_imports)] +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>); +} |