web_sys/features/
gen_IdbRequest.rs

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