1 #![allow(unused_imports)]
2 use super::*;
3 use wasm_bindgen::prelude::*;
4 #[wasm_bindgen]
5 extern "C" {
6     # [wasm_bindgen (extends = :: js_sys :: Object , js_name = IDBCursor , typescript_type = "IDBCursor")]
7     #[derive(Debug, Clone, PartialEq, Eq)]
8     #[doc = "The `IdbCursor` class."]
9     #[doc = ""]
10     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBCursor)"]
11     #[doc = ""]
12     #[doc = "*This API requires the following crate features to be activated: `IdbCursor`*"]
13     pub type IdbCursor;
14     # [wasm_bindgen (structural , method , getter , js_class = "IDBCursor" , js_name = source)]
15     #[doc = "Getter for the `source` field of this object."]
16     #[doc = ""]
17     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBCursor/source)"]
18     #[doc = ""]
19     #[doc = "*This API requires the following crate features to be activated: `IdbCursor`*"]
source(this: &IdbCursor) -> ::js_sys::Object20     pub fn source(this: &IdbCursor) -> ::js_sys::Object;
21     #[cfg(feature = "IdbCursorDirection")]
22     # [wasm_bindgen (structural , method , getter , js_class = "IDBCursor" , js_name = direction)]
23     #[doc = "Getter for the `direction` field of this object."]
24     #[doc = ""]
25     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBCursor/direction)"]
26     #[doc = ""]
27     #[doc = "*This API requires the following crate features to be activated: `IdbCursor`, `IdbCursorDirection`*"]
direction(this: &IdbCursor) -> IdbCursorDirection28     pub fn direction(this: &IdbCursor) -> IdbCursorDirection;
29     # [wasm_bindgen (structural , catch , method , getter , js_class = "IDBCursor" , js_name = key)]
30     #[doc = "Getter for the `key` field of this object."]
31     #[doc = ""]
32     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBCursor/key)"]
33     #[doc = ""]
34     #[doc = "*This API requires the following crate features to be activated: `IdbCursor`*"]
key(this: &IdbCursor) -> Result<::wasm_bindgen::JsValue, JsValue>35     pub fn key(this: &IdbCursor) -> Result<::wasm_bindgen::JsValue, JsValue>;
36     # [wasm_bindgen (structural , catch , method , getter , js_class = "IDBCursor" , js_name = primaryKey)]
37     #[doc = "Getter for the `primaryKey` field of this object."]
38     #[doc = ""]
39     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBCursor/primaryKey)"]
40     #[doc = ""]
41     #[doc = "*This API requires the following crate features to be activated: `IdbCursor`*"]
primary_key(this: &IdbCursor) -> Result<::wasm_bindgen::JsValue, JsValue>42     pub fn primary_key(this: &IdbCursor) -> Result<::wasm_bindgen::JsValue, JsValue>;
43     # [wasm_bindgen (catch , method , structural , js_class = "IDBCursor" , js_name = advance)]
44     #[doc = "The `advance()` method."]
45     #[doc = ""]
46     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBCursor/advance)"]
47     #[doc = ""]
48     #[doc = "*This API requires the following crate features to be activated: `IdbCursor`*"]
advance(this: &IdbCursor, count: u32) -> Result<(), JsValue>49     pub fn advance(this: &IdbCursor, count: u32) -> Result<(), JsValue>;
50     # [wasm_bindgen (catch , method , structural , js_class = "IDBCursor" , js_name = continue)]
51     #[doc = "The `continue()` method."]
52     #[doc = ""]
53     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBCursor/continue)"]
54     #[doc = ""]
55     #[doc = "*This API requires the following crate features to be activated: `IdbCursor`*"]
continue_(this: &IdbCursor) -> Result<(), JsValue>56     pub fn continue_(this: &IdbCursor) -> Result<(), JsValue>;
57     # [wasm_bindgen (catch , method , structural , js_class = "IDBCursor" , js_name = continue)]
58     #[doc = "The `continue()` method."]
59     #[doc = ""]
60     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBCursor/continue)"]
61     #[doc = ""]
62     #[doc = "*This API requires the following crate features to be activated: `IdbCursor`*"]
continue_with_key( this: &IdbCursor, key: &::wasm_bindgen::JsValue, ) -> Result<(), JsValue>63     pub fn continue_with_key(
64         this: &IdbCursor,
65         key: &::wasm_bindgen::JsValue,
66     ) -> Result<(), JsValue>;
67     # [wasm_bindgen (catch , method , structural , js_class = "IDBCursor" , js_name = continuePrimaryKey)]
68     #[doc = "The `continuePrimaryKey()` method."]
69     #[doc = ""]
70     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBCursor/continuePrimaryKey)"]
71     #[doc = ""]
72     #[doc = "*This API requires the following crate features to be activated: `IdbCursor`*"]
continue_primary_key( this: &IdbCursor, key: &::wasm_bindgen::JsValue, primary_key: &::wasm_bindgen::JsValue, ) -> Result<(), JsValue>73     pub fn continue_primary_key(
74         this: &IdbCursor,
75         key: &::wasm_bindgen::JsValue,
76         primary_key: &::wasm_bindgen::JsValue,
77     ) -> Result<(), JsValue>;
78     #[cfg(feature = "IdbRequest")]
79     # [wasm_bindgen (catch , method , structural , js_class = "IDBCursor" , js_name = delete)]
80     #[doc = "The `delete()` method."]
81     #[doc = ""]
82     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBCursor/delete)"]
83     #[doc = ""]
84     #[doc = "*This API requires the following crate features to be activated: `IdbCursor`, `IdbRequest`*"]
delete(this: &IdbCursor) -> Result<IdbRequest, JsValue>85     pub fn delete(this: &IdbCursor) -> Result<IdbRequest, JsValue>;
86     #[cfg(feature = "IdbRequest")]
87     # [wasm_bindgen (catch , method , structural , js_class = "IDBCursor" , js_name = update)]
88     #[doc = "The `update()` method."]
89     #[doc = ""]
90     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBCursor/update)"]
91     #[doc = ""]
92     #[doc = "*This API requires the following crate features to be activated: `IdbCursor`, `IdbRequest`*"]
update(this: &IdbCursor, value: &::wasm_bindgen::JsValue) -> Result<IdbRequest, JsValue>93     pub fn update(this: &IdbCursor, value: &::wasm_bindgen::JsValue)
94         -> Result<IdbRequest, JsValue>;
95 }
96