1 #![allow(unused_imports)] 2 use super::*; 3 use wasm_bindgen::prelude::*; 4 #[wasm_bindgen] 5 extern "C" { 6 # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = DOMRequest , typescript_type = "DOMRequest")] 7 #[derive(Debug, Clone, PartialEq, Eq)] 8 #[doc = "The `DomRequest` class."] 9 #[doc = ""] 10 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRequest)"] 11 #[doc = ""] 12 #[doc = "*This API requires the following crate features to be activated: `DomRequest`*"] 13 pub type DomRequest; 14 #[cfg(feature = "DomRequestReadyState")] 15 # [wasm_bindgen (structural , method , getter , js_class = "DOMRequest" , js_name = readyState)] 16 #[doc = "Getter for the `readyState` field of this object."] 17 #[doc = ""] 18 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRequest/readyState)"] 19 #[doc = ""] 20 #[doc = "*This API requires the following crate features to be activated: `DomRequest`, `DomRequestReadyState`*"] ready_state(this: &DomRequest) -> DomRequestReadyState21 pub fn ready_state(this: &DomRequest) -> DomRequestReadyState; 22 # [wasm_bindgen (structural , method , getter , js_class = "DOMRequest" , js_name = result)] 23 #[doc = "Getter for the `result` field of this object."] 24 #[doc = ""] 25 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRequest/result)"] 26 #[doc = ""] 27 #[doc = "*This API requires the following crate features to be activated: `DomRequest`*"] result(this: &DomRequest) -> ::wasm_bindgen::JsValue28 pub fn result(this: &DomRequest) -> ::wasm_bindgen::JsValue; 29 #[cfg(feature = "DomException")] 30 # [wasm_bindgen (structural , method , getter , js_class = "DOMRequest" , js_name = error)] 31 #[doc = "Getter for the `error` field of this object."] 32 #[doc = ""] 33 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRequest/error)"] 34 #[doc = ""] 35 #[doc = "*This API requires the following crate features to be activated: `DomException`, `DomRequest`*"] error(this: &DomRequest) -> Option<DomException>36 pub fn error(this: &DomRequest) -> Option<DomException>; 37 # [wasm_bindgen (structural , method , getter , js_class = "DOMRequest" , js_name = onsuccess)] 38 #[doc = "Getter for the `onsuccess` field of this object."] 39 #[doc = ""] 40 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRequest/onsuccess)"] 41 #[doc = ""] 42 #[doc = "*This API requires the following crate features to be activated: `DomRequest`*"] onsuccess(this: &DomRequest) -> Option<::js_sys::Function>43 pub fn onsuccess(this: &DomRequest) -> Option<::js_sys::Function>; 44 # [wasm_bindgen (structural , method , setter , js_class = "DOMRequest" , js_name = onsuccess)] 45 #[doc = "Setter for the `onsuccess` field of this object."] 46 #[doc = ""] 47 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRequest/onsuccess)"] 48 #[doc = ""] 49 #[doc = "*This API requires the following crate features to be activated: `DomRequest`*"] set_onsuccess(this: &DomRequest, value: Option<&::js_sys::Function>)50 pub fn set_onsuccess(this: &DomRequest, value: Option<&::js_sys::Function>); 51 # [wasm_bindgen (structural , method , getter , js_class = "DOMRequest" , js_name = onerror)] 52 #[doc = "Getter for the `onerror` field of this object."] 53 #[doc = ""] 54 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRequest/onerror)"] 55 #[doc = ""] 56 #[doc = "*This API requires the following crate features to be activated: `DomRequest`*"] onerror(this: &DomRequest) -> Option<::js_sys::Function>57 pub fn onerror(this: &DomRequest) -> Option<::js_sys::Function>; 58 # [wasm_bindgen (structural , method , setter , js_class = "DOMRequest" , js_name = onerror)] 59 #[doc = "Setter for the `onerror` field of this object."] 60 #[doc = ""] 61 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRequest/onerror)"] 62 #[doc = ""] 63 #[doc = "*This API requires the following crate features to be activated: `DomRequest`*"] set_onerror(this: &DomRequest, value: Option<&::js_sys::Function>)64 pub fn set_onerror(this: &DomRequest, value: Option<&::js_sys::Function>); 65 # [wasm_bindgen (catch , method , structural , js_class = "DOMRequest" , js_name = then)] 66 #[doc = "The `then()` method."] 67 #[doc = ""] 68 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRequest/then)"] 69 #[doc = ""] 70 #[doc = "*This API requires the following crate features to be activated: `DomRequest`*"] then(this: &DomRequest) -> Result<::wasm_bindgen::JsValue, JsValue>71 pub fn then(this: &DomRequest) -> Result<::wasm_bindgen::JsValue, JsValue>; 72 # [wasm_bindgen (catch , method , structural , js_class = "DOMRequest" , js_name = then)] 73 #[doc = "The `then()` method."] 74 #[doc = ""] 75 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRequest/then)"] 76 #[doc = ""] 77 #[doc = "*This API requires the following crate features to be activated: `DomRequest`*"] then_with_fulfill_callback( this: &DomRequest, fulfill_callback: Option<&::js_sys::Function>, ) -> Result<::wasm_bindgen::JsValue, JsValue>78 pub fn then_with_fulfill_callback( 79 this: &DomRequest, 80 fulfill_callback: Option<&::js_sys::Function>, 81 ) -> Result<::wasm_bindgen::JsValue, JsValue>; 82 # [wasm_bindgen (catch , method , structural , js_class = "DOMRequest" , js_name = then)] 83 #[doc = "The `then()` method."] 84 #[doc = ""] 85 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRequest/then)"] 86 #[doc = ""] 87 #[doc = "*This API requires the following crate features to be activated: `DomRequest`*"] then_with_fulfill_callback_and_reject_callback( this: &DomRequest, fulfill_callback: Option<&::js_sys::Function>, reject_callback: Option<&::js_sys::Function>, ) -> Result<::wasm_bindgen::JsValue, JsValue>88 pub fn then_with_fulfill_callback_and_reject_callback( 89 this: &DomRequest, 90 fulfill_callback: Option<&::js_sys::Function>, 91 reject_callback: Option<&::js_sys::Function>, 92 ) -> Result<::wasm_bindgen::JsValue, JsValue>; 93 } 94