web_sys/features/
gen_IdbMutableFile.rs1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[wasm_bindgen]
6extern "C" {
7 #[wasm_bindgen(
8 extends = "EventTarget",
9 extends = "::js_sys::Object",
10 js_name = "IDBMutableFile",
11 typescript_type = "IDBMutableFile"
12 )]
13 #[derive(Debug, Clone, PartialEq, Eq)]
14 #[doc = "The `IdbMutableFile` class."]
15 #[doc = ""]
16 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBMutableFile)"]
17 #[doc = ""]
18 #[doc = "*This API requires the following crate features to be activated: `IdbMutableFile`*"]
19 #[deprecated]
20 pub type IdbMutableFile;
21 #[wasm_bindgen(method, getter, js_class = "IDBMutableFile", js_name = "name")]
22 #[doc = "Getter for the `name` field of this object."]
23 #[doc = ""]
24 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBMutableFile/name)"]
25 #[doc = ""]
26 #[doc = "*This API requires the following crate features to be activated: `IdbMutableFile`*"]
27 #[deprecated]
28 pub fn name(this: &IdbMutableFile) -> ::alloc::string::String;
29 #[wasm_bindgen(method, getter, js_class = "IDBMutableFile", js_name = "type")]
30 #[doc = "Getter for the `type` field of this object."]
31 #[doc = ""]
32 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBMutableFile/type)"]
33 #[doc = ""]
34 #[doc = "*This API requires the following crate features to be activated: `IdbMutableFile`*"]
35 #[deprecated]
36 pub fn type_(this: &IdbMutableFile) -> ::alloc::string::String;
37 #[cfg(feature = "IdbDatabase")]
38 #[wasm_bindgen(method, getter, js_class = "IDBMutableFile", js_name = "database")]
39 #[doc = "Getter for the `database` field of this object."]
40 #[doc = ""]
41 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBMutableFile/database)"]
42 #[doc = ""]
43 #[doc = "*This API requires the following crate features to be activated: `IdbDatabase`, `IdbMutableFile`*"]
44 #[deprecated]
45 pub fn database(this: &IdbMutableFile) -> IdbDatabase;
46 #[wasm_bindgen(method, getter, js_class = "IDBMutableFile", js_name = "onabort")]
47 #[doc = "Getter for the `onabort` field of this object."]
48 #[doc = ""]
49 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBMutableFile/onabort)"]
50 #[doc = ""]
51 #[doc = "*This API requires the following crate features to be activated: `IdbMutableFile`*"]
52 #[deprecated]
53 pub fn onabort(this: &IdbMutableFile) -> Option<::js_sys::Function>;
54 #[wasm_bindgen(method, setter, js_class = "IDBMutableFile", js_name = "onabort")]
55 #[doc = "Setter for the `onabort` field of this object."]
56 #[doc = ""]
57 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBMutableFile/onabort)"]
58 #[doc = ""]
59 #[doc = "*This API requires the following crate features to be activated: `IdbMutableFile`*"]
60 #[deprecated]
61 pub fn set_onabort(this: &IdbMutableFile, value: Option<&::js_sys::Function>);
62 #[wasm_bindgen(method, getter, js_class = "IDBMutableFile", js_name = "onerror")]
63 #[doc = "Getter for the `onerror` field of this object."]
64 #[doc = ""]
65 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBMutableFile/onerror)"]
66 #[doc = ""]
67 #[doc = "*This API requires the following crate features to be activated: `IdbMutableFile`*"]
68 #[deprecated]
69 pub fn onerror(this: &IdbMutableFile) -> Option<::js_sys::Function>;
70 #[wasm_bindgen(method, setter, js_class = "IDBMutableFile", js_name = "onerror")]
71 #[doc = "Setter for the `onerror` field of this object."]
72 #[doc = ""]
73 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBMutableFile/onerror)"]
74 #[doc = ""]
75 #[doc = "*This API requires the following crate features to be activated: `IdbMutableFile`*"]
76 #[deprecated]
77 pub fn set_onerror(this: &IdbMutableFile, value: Option<&::js_sys::Function>);
78 #[cfg(feature = "DomRequest")]
79 #[wasm_bindgen(catch, method, js_class = "IDBMutableFile", js_name = "getFile")]
80 #[doc = "The `getFile()` method."]
81 #[doc = ""]
82 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBMutableFile/getFile)"]
83 #[doc = ""]
84 #[doc = "*This API requires the following crate features to be activated: `DomRequest`, `IdbMutableFile`*"]
85 #[deprecated]
86 pub fn get_file(this: &IdbMutableFile) -> Result<DomRequest, JsValue>;
87 #[cfg(feature = "IdbFileHandle")]
88 #[wasm_bindgen(catch, method, js_class = "IDBMutableFile")]
89 #[doc = "The `open()` method."]
90 #[doc = ""]
91 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBMutableFile/open)"]
92 #[doc = ""]
93 #[doc = "*This API requires the following crate features to be activated: `IdbFileHandle`, `IdbMutableFile`*"]
94 #[deprecated]
95 pub fn open(this: &IdbMutableFile) -> Result<IdbFileHandle, JsValue>;
96}