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 = IDBRequest , typescript_type = "IDBRequest")] 7 #[derive(Debug, Clone, PartialEq, Eq)] 8 #[doc = "The `IdbRequest` class."] 9 #[doc = ""] 10 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBRequest)"] 11 #[doc = ""] 12 #[doc = "*This API requires the following crate features to be activated: `IdbRequest`*"] 13 pub type IdbRequest; 14 # [wasm_bindgen (structural , catch , method , getter , js_class = "IDBRequest" , js_name = result)] 15 #[doc = "Getter for the `result` field of this object."] 16 #[doc = ""] 17 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBRequest/result)"] 18 #[doc = ""] 19 #[doc = "*This API requires the following crate features to be activated: `IdbRequest`*"] result(this: &IdbRequest) -> Result<::wasm_bindgen::JsValue, JsValue>20 pub fn result(this: &IdbRequest) -> Result<::wasm_bindgen::JsValue, JsValue>; 21 #[cfg(feature = "DomException")] 22 # [wasm_bindgen (structural , catch , method , getter , js_class = "IDBRequest" , js_name = error)] 23 #[doc = "Getter for the `error` field of this object."] 24 #[doc = ""] 25 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBRequest/error)"] 26 #[doc = ""] 27 #[doc = "*This API requires the following crate features to be activated: `DomException`, `IdbRequest`*"] error(this: &IdbRequest) -> Result<Option<DomException>, JsValue>28 pub fn error(this: &IdbRequest) -> Result<Option<DomException>, JsValue>; 29 # [wasm_bindgen (structural , method , getter , js_class = "IDBRequest" , js_name = source)] 30 #[doc = "Getter for the `source` field of this object."] 31 #[doc = ""] 32 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBRequest/source)"] 33 #[doc = ""] 34 #[doc = "*This API requires the following crate features to be activated: `IdbRequest`*"] source(this: &IdbRequest) -> Option<::js_sys::Object>35 pub fn source(this: &IdbRequest) -> Option<::js_sys::Object>; 36 #[cfg(feature = "IdbTransaction")] 37 # [wasm_bindgen (structural , method , getter , js_class = "IDBRequest" , js_name = transaction)] 38 #[doc = "Getter for the `transaction` field of this object."] 39 #[doc = ""] 40 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBRequest/transaction)"] 41 #[doc = ""] 42 #[doc = "*This API requires the following crate features to be activated: `IdbRequest`, `IdbTransaction`*"] transaction(this: &IdbRequest) -> Option<IdbTransaction>43 pub fn transaction(this: &IdbRequest) -> Option<IdbTransaction>; 44 #[cfg(feature = "IdbRequestReadyState")] 45 # [wasm_bindgen (structural , method , getter , js_class = "IDBRequest" , js_name = readyState)] 46 #[doc = "Getter for the `readyState` field of this object."] 47 #[doc = ""] 48 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBRequest/readyState)"] 49 #[doc = ""] 50 #[doc = "*This API requires the following crate features to be activated: `IdbRequest`, `IdbRequestReadyState`*"] ready_state(this: &IdbRequest) -> IdbRequestReadyState51 pub fn ready_state(this: &IdbRequest) -> IdbRequestReadyState; 52 # [wasm_bindgen (structural , method , getter , js_class = "IDBRequest" , js_name = onsuccess)] 53 #[doc = "Getter for the `onsuccess` field of this object."] 54 #[doc = ""] 55 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBRequest/onsuccess)"] 56 #[doc = ""] 57 #[doc = "*This API requires the following crate features to be activated: `IdbRequest`*"] onsuccess(this: &IdbRequest) -> Option<::js_sys::Function>58 pub fn onsuccess(this: &IdbRequest) -> Option<::js_sys::Function>; 59 # [wasm_bindgen (structural , method , setter , js_class = "IDBRequest" , js_name = onsuccess)] 60 #[doc = "Setter for the `onsuccess` field of this object."] 61 #[doc = ""] 62 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBRequest/onsuccess)"] 63 #[doc = ""] 64 #[doc = "*This API requires the following crate features to be activated: `IdbRequest`*"] set_onsuccess(this: &IdbRequest, value: Option<&::js_sys::Function>)65 pub fn set_onsuccess(this: &IdbRequest, value: Option<&::js_sys::Function>); 66 # [wasm_bindgen (structural , method , getter , js_class = "IDBRequest" , js_name = onerror)] 67 #[doc = "Getter for the `onerror` field of this object."] 68 #[doc = ""] 69 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBRequest/onerror)"] 70 #[doc = ""] 71 #[doc = "*This API requires the following crate features to be activated: `IdbRequest`*"] onerror(this: &IdbRequest) -> Option<::js_sys::Function>72 pub fn onerror(this: &IdbRequest) -> Option<::js_sys::Function>; 73 # [wasm_bindgen (structural , method , setter , js_class = "IDBRequest" , js_name = onerror)] 74 #[doc = "Setter for the `onerror` field of this object."] 75 #[doc = ""] 76 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBRequest/onerror)"] 77 #[doc = ""] 78 #[doc = "*This API requires the following crate features to be activated: `IdbRequest`*"] set_onerror(this: &IdbRequest, value: Option<&::js_sys::Function>)79 pub fn set_onerror(this: &IdbRequest, value: Option<&::js_sys::Function>); 80 } 81