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 = IDBTransaction , typescript_type = "IDBTransaction")] 7 #[derive(Debug, Clone, PartialEq, Eq)] 8 #[doc = "The `IdbTransaction` class."] 9 #[doc = ""] 10 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBTransaction)"] 11 #[doc = ""] 12 #[doc = "*This API requires the following crate features to be activated: `IdbTransaction`*"] 13 pub type IdbTransaction; 14 #[cfg(feature = "IdbTransactionMode")] 15 # [wasm_bindgen (structural , catch , method , getter , js_class = "IDBTransaction" , js_name = mode)] 16 #[doc = "Getter for the `mode` field of this object."] 17 #[doc = ""] 18 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBTransaction/mode)"] 19 #[doc = ""] 20 #[doc = "*This API requires the following crate features to be activated: `IdbTransaction`, `IdbTransactionMode`*"] mode(this: &IdbTransaction) -> Result<IdbTransactionMode, JsValue>21 pub fn mode(this: &IdbTransaction) -> Result<IdbTransactionMode, JsValue>; 22 #[cfg(feature = "IdbDatabase")] 23 # [wasm_bindgen (structural , method , getter , js_class = "IDBTransaction" , js_name = db)] 24 #[doc = "Getter for the `db` field of this object."] 25 #[doc = ""] 26 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBTransaction/db)"] 27 #[doc = ""] 28 #[doc = "*This API requires the following crate features to be activated: `IdbDatabase`, `IdbTransaction`*"] db(this: &IdbTransaction) -> IdbDatabase29 pub fn db(this: &IdbTransaction) -> IdbDatabase; 30 #[cfg(feature = "DomException")] 31 # [wasm_bindgen (structural , method , getter , js_class = "IDBTransaction" , js_name = error)] 32 #[doc = "Getter for the `error` field of this object."] 33 #[doc = ""] 34 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBTransaction/error)"] 35 #[doc = ""] 36 #[doc = "*This API requires the following crate features to be activated: `DomException`, `IdbTransaction`*"] error(this: &IdbTransaction) -> Option<DomException>37 pub fn error(this: &IdbTransaction) -> Option<DomException>; 38 # [wasm_bindgen (structural , method , getter , js_class = "IDBTransaction" , js_name = onabort)] 39 #[doc = "Getter for the `onabort` field of this object."] 40 #[doc = ""] 41 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBTransaction/onabort)"] 42 #[doc = ""] 43 #[doc = "*This API requires the following crate features to be activated: `IdbTransaction`*"] onabort(this: &IdbTransaction) -> Option<::js_sys::Function>44 pub fn onabort(this: &IdbTransaction) -> Option<::js_sys::Function>; 45 # [wasm_bindgen (structural , method , setter , js_class = "IDBTransaction" , js_name = onabort)] 46 #[doc = "Setter for the `onabort` field of this object."] 47 #[doc = ""] 48 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBTransaction/onabort)"] 49 #[doc = ""] 50 #[doc = "*This API requires the following crate features to be activated: `IdbTransaction`*"] set_onabort(this: &IdbTransaction, value: Option<&::js_sys::Function>)51 pub fn set_onabort(this: &IdbTransaction, value: Option<&::js_sys::Function>); 52 # [wasm_bindgen (structural , method , getter , js_class = "IDBTransaction" , js_name = oncomplete)] 53 #[doc = "Getter for the `oncomplete` field of this object."] 54 #[doc = ""] 55 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBTransaction/oncomplete)"] 56 #[doc = ""] 57 #[doc = "*This API requires the following crate features to be activated: `IdbTransaction`*"] oncomplete(this: &IdbTransaction) -> Option<::js_sys::Function>58 pub fn oncomplete(this: &IdbTransaction) -> Option<::js_sys::Function>; 59 # [wasm_bindgen (structural , method , setter , js_class = "IDBTransaction" , js_name = oncomplete)] 60 #[doc = "Setter for the `oncomplete` field of this object."] 61 #[doc = ""] 62 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBTransaction/oncomplete)"] 63 #[doc = ""] 64 #[doc = "*This API requires the following crate features to be activated: `IdbTransaction`*"] set_oncomplete(this: &IdbTransaction, value: Option<&::js_sys::Function>)65 pub fn set_oncomplete(this: &IdbTransaction, value: Option<&::js_sys::Function>); 66 # [wasm_bindgen (structural , method , getter , js_class = "IDBTransaction" , 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/IDBTransaction/onerror)"] 70 #[doc = ""] 71 #[doc = "*This API requires the following crate features to be activated: `IdbTransaction`*"] onerror(this: &IdbTransaction) -> Option<::js_sys::Function>72 pub fn onerror(this: &IdbTransaction) -> Option<::js_sys::Function>; 73 # [wasm_bindgen (structural , method , setter , js_class = "IDBTransaction" , 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/IDBTransaction/onerror)"] 77 #[doc = ""] 78 #[doc = "*This API requires the following crate features to be activated: `IdbTransaction`*"] set_onerror(this: &IdbTransaction, value: Option<&::js_sys::Function>)79 pub fn set_onerror(this: &IdbTransaction, value: Option<&::js_sys::Function>); 80 #[cfg(feature = "DomStringList")] 81 # [wasm_bindgen (structural , method , getter , js_class = "IDBTransaction" , js_name = objectStoreNames)] 82 #[doc = "Getter for the `objectStoreNames` field of this object."] 83 #[doc = ""] 84 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBTransaction/objectStoreNames)"] 85 #[doc = ""] 86 #[doc = "*This API requires the following crate features to be activated: `DomStringList`, `IdbTransaction`*"] object_store_names(this: &IdbTransaction) -> DomStringList87 pub fn object_store_names(this: &IdbTransaction) -> DomStringList; 88 # [wasm_bindgen (catch , method , structural , js_class = "IDBTransaction" , js_name = abort)] 89 #[doc = "The `abort()` method."] 90 #[doc = ""] 91 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBTransaction/abort)"] 92 #[doc = ""] 93 #[doc = "*This API requires the following crate features to be activated: `IdbTransaction`*"] abort(this: &IdbTransaction) -> Result<(), JsValue>94 pub fn abort(this: &IdbTransaction) -> Result<(), JsValue>; 95 #[cfg(feature = "IdbObjectStore")] 96 # [wasm_bindgen (catch , method , structural , js_class = "IDBTransaction" , js_name = objectStore)] 97 #[doc = "The `objectStore()` method."] 98 #[doc = ""] 99 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBTransaction/objectStore)"] 100 #[doc = ""] 101 #[doc = "*This API requires the following crate features to be activated: `IdbObjectStore`, `IdbTransaction`*"] object_store(this: &IdbTransaction, name: &str) -> Result<IdbObjectStore, JsValue>102 pub fn object_store(this: &IdbTransaction, name: &str) -> Result<IdbObjectStore, JsValue>; 103 } 104