Skip to main content

web_sys/features/
gen_IdbCursor.rs

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