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