web_sys/features/
gen_IdbFileHandle.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 = IDBFileHandle , typescript_type = "IDBFileHandle")]
8    #[derive(Debug, Clone, PartialEq, Eq)]
9    #[doc = "The `IdbFileHandle` class."]
10    #[doc = ""]
11    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFileHandle)"]
12    #[doc = ""]
13    #[doc = "*This API requires the following crate features to be activated: `IdbFileHandle`*"]
14    #[deprecated]
15    pub type IdbFileHandle;
16    #[cfg(feature = "IdbMutableFile")]
17    # [wasm_bindgen (structural , method , getter , js_class = "IDBFileHandle" , js_name = mutableFile)]
18    #[doc = "Getter for the `mutableFile` field of this object."]
19    #[doc = ""]
20    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFileHandle/mutableFile)"]
21    #[doc = ""]
22    #[doc = "*This API requires the following crate features to be activated: `IdbFileHandle`, `IdbMutableFile`*"]
23    #[deprecated]
24    pub fn mutable_file(this: &IdbFileHandle) -> Option<IdbMutableFile>;
25    #[cfg(feature = "IdbMutableFile")]
26    # [wasm_bindgen (structural , method , getter , js_class = "IDBFileHandle" , js_name = fileHandle)]
27    #[doc = "Getter for the `fileHandle` field of this object."]
28    #[doc = ""]
29    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFileHandle/fileHandle)"]
30    #[doc = ""]
31    #[doc = "*This API requires the following crate features to be activated: `IdbFileHandle`, `IdbMutableFile`*"]
32    #[deprecated]
33    pub fn file_handle(this: &IdbFileHandle) -> Option<IdbMutableFile>;
34    # [wasm_bindgen (structural , method , getter , js_class = "IDBFileHandle" , js_name = active)]
35    #[doc = "Getter for the `active` field of this object."]
36    #[doc = ""]
37    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFileHandle/active)"]
38    #[doc = ""]
39    #[doc = "*This API requires the following crate features to be activated: `IdbFileHandle`*"]
40    #[deprecated]
41    pub fn active(this: &IdbFileHandle) -> bool;
42    # [wasm_bindgen (structural , method , getter , js_class = "IDBFileHandle" , js_name = location)]
43    #[doc = "Getter for the `location` field of this object."]
44    #[doc = ""]
45    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFileHandle/location)"]
46    #[doc = ""]
47    #[doc = "*This API requires the following crate features to be activated: `IdbFileHandle`*"]
48    #[deprecated]
49    pub fn location(this: &IdbFileHandle) -> Option<f64>;
50    # [wasm_bindgen (structural , method , setter , js_class = "IDBFileHandle" , js_name = location)]
51    #[doc = "Setter for the `location` field of this object."]
52    #[doc = ""]
53    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFileHandle/location)"]
54    #[doc = ""]
55    #[doc = "*This API requires the following crate features to be activated: `IdbFileHandle`*"]
56    #[deprecated]
57    pub fn set_location(this: &IdbFileHandle, value: Option<f64>);
58    # [wasm_bindgen (structural , method , setter , js_class = "IDBFileHandle" , js_name = location)]
59    #[doc = "Setter for the `location` field of this object."]
60    #[doc = ""]
61    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFileHandle/location)"]
62    #[doc = ""]
63    #[doc = "*This API requires the following crate features to be activated: `IdbFileHandle`*"]
64    #[deprecated]
65    pub fn set_location_opt_u32(this: &IdbFileHandle, value: Option<u32>);
66    # [wasm_bindgen (structural , method , setter , js_class = "IDBFileHandle" , js_name = location)]
67    #[doc = "Setter for the `location` field of this object."]
68    #[doc = ""]
69    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFileHandle/location)"]
70    #[doc = ""]
71    #[doc = "*This API requires the following crate features to be activated: `IdbFileHandle`*"]
72    #[deprecated]
73    pub fn set_location_opt_f64(this: &IdbFileHandle, value: Option<f64>);
74    # [wasm_bindgen (structural , method , getter , js_class = "IDBFileHandle" , js_name = oncomplete)]
75    #[doc = "Getter for the `oncomplete` field of this object."]
76    #[doc = ""]
77    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFileHandle/oncomplete)"]
78    #[doc = ""]
79    #[doc = "*This API requires the following crate features to be activated: `IdbFileHandle`*"]
80    #[deprecated]
81    pub fn oncomplete(this: &IdbFileHandle) -> Option<::js_sys::Function>;
82    # [wasm_bindgen (structural , method , setter , js_class = "IDBFileHandle" , js_name = oncomplete)]
83    #[doc = "Setter for the `oncomplete` field of this object."]
84    #[doc = ""]
85    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFileHandle/oncomplete)"]
86    #[doc = ""]
87    #[doc = "*This API requires the following crate features to be activated: `IdbFileHandle`*"]
88    #[deprecated]
89    pub fn set_oncomplete(this: &IdbFileHandle, value: Option<&::js_sys::Function>);
90    # [wasm_bindgen (structural , method , getter , js_class = "IDBFileHandle" , js_name = onabort)]
91    #[doc = "Getter for the `onabort` field of this object."]
92    #[doc = ""]
93    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFileHandle/onabort)"]
94    #[doc = ""]
95    #[doc = "*This API requires the following crate features to be activated: `IdbFileHandle`*"]
96    #[deprecated]
97    pub fn onabort(this: &IdbFileHandle) -> Option<::js_sys::Function>;
98    # [wasm_bindgen (structural , method , setter , js_class = "IDBFileHandle" , js_name = onabort)]
99    #[doc = "Setter for the `onabort` field of this object."]
100    #[doc = ""]
101    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFileHandle/onabort)"]
102    #[doc = ""]
103    #[doc = "*This API requires the following crate features to be activated: `IdbFileHandle`*"]
104    #[deprecated]
105    pub fn set_onabort(this: &IdbFileHandle, value: Option<&::js_sys::Function>);
106    # [wasm_bindgen (structural , method , getter , js_class = "IDBFileHandle" , js_name = onerror)]
107    #[doc = "Getter for the `onerror` field of this object."]
108    #[doc = ""]
109    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFileHandle/onerror)"]
110    #[doc = ""]
111    #[doc = "*This API requires the following crate features to be activated: `IdbFileHandle`*"]
112    #[deprecated]
113    pub fn onerror(this: &IdbFileHandle) -> Option<::js_sys::Function>;
114    # [wasm_bindgen (structural , method , setter , js_class = "IDBFileHandle" , js_name = onerror)]
115    #[doc = "Setter for the `onerror` field of this object."]
116    #[doc = ""]
117    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFileHandle/onerror)"]
118    #[doc = ""]
119    #[doc = "*This API requires the following crate features to be activated: `IdbFileHandle`*"]
120    #[deprecated]
121    pub fn set_onerror(this: &IdbFileHandle, value: Option<&::js_sys::Function>);
122    # [wasm_bindgen (catch , method , structural , js_class = "IDBFileHandle" , js_name = abort)]
123    #[doc = "The `abort()` method."]
124    #[doc = ""]
125    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFileHandle/abort)"]
126    #[doc = ""]
127    #[doc = "*This API requires the following crate features to be activated: `IdbFileHandle`*"]
128    #[deprecated]
129    pub fn abort(this: &IdbFileHandle) -> Result<(), JsValue>;
130    #[cfg(feature = "IdbFileRequest")]
131    # [wasm_bindgen (catch , method , structural , js_class = "IDBFileHandle" , js_name = append)]
132    #[doc = "The `append()` method."]
133    #[doc = ""]
134    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFileHandle/append)"]
135    #[doc = ""]
136    #[doc = "*This API requires the following crate features to be activated: `IdbFileHandle`, `IdbFileRequest`*"]
137    #[deprecated]
138    pub fn append_with_str(
139        this: &IdbFileHandle,
140        value: &str,
141    ) -> Result<Option<IdbFileRequest>, JsValue>;
142    #[cfg(feature = "IdbFileRequest")]
143    # [wasm_bindgen (catch , method , structural , js_class = "IDBFileHandle" , js_name = append)]
144    #[doc = "The `append()` method."]
145    #[doc = ""]
146    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFileHandle/append)"]
147    #[doc = ""]
148    #[doc = "*This API requires the following crate features to be activated: `IdbFileHandle`, `IdbFileRequest`*"]
149    #[deprecated]
150    pub fn append_with_array_buffer(
151        this: &IdbFileHandle,
152        value: &::js_sys::ArrayBuffer,
153    ) -> Result<Option<IdbFileRequest>, JsValue>;
154    #[cfg(feature = "IdbFileRequest")]
155    # [wasm_bindgen (catch , method , structural , js_class = "IDBFileHandle" , js_name = append)]
156    #[doc = "The `append()` method."]
157    #[doc = ""]
158    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFileHandle/append)"]
159    #[doc = ""]
160    #[doc = "*This API requires the following crate features to be activated: `IdbFileHandle`, `IdbFileRequest`*"]
161    #[deprecated]
162    pub fn append_with_array_buffer_view(
163        this: &IdbFileHandle,
164        value: &::js_sys::Object,
165    ) -> Result<Option<IdbFileRequest>, JsValue>;
166    #[cfg(feature = "IdbFileRequest")]
167    # [wasm_bindgen (catch , method , structural , js_class = "IDBFileHandle" , js_name = append)]
168    #[doc = "The `append()` method."]
169    #[doc = ""]
170    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFileHandle/append)"]
171    #[doc = ""]
172    #[doc = "*This API requires the following crate features to be activated: `IdbFileHandle`, `IdbFileRequest`*"]
173    #[deprecated]
174    pub fn append_with_u8_array(
175        this: &IdbFileHandle,
176        value: &mut [u8],
177    ) -> Result<Option<IdbFileRequest>, JsValue>;
178    #[cfg(feature = "IdbFileRequest")]
179    # [wasm_bindgen (catch , method , structural , js_class = "IDBFileHandle" , js_name = append)]
180    #[doc = "The `append()` method."]
181    #[doc = ""]
182    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFileHandle/append)"]
183    #[doc = ""]
184    #[doc = "*This API requires the following crate features to be activated: `IdbFileHandle`, `IdbFileRequest`*"]
185    #[deprecated]
186    pub fn append_with_js_u8_array(
187        this: &IdbFileHandle,
188        value: &::js_sys::Uint8Array,
189    ) -> Result<Option<IdbFileRequest>, JsValue>;
190    #[cfg(all(feature = "Blob", feature = "IdbFileRequest",))]
191    # [wasm_bindgen (catch , method , structural , js_class = "IDBFileHandle" , js_name = append)]
192    #[doc = "The `append()` method."]
193    #[doc = ""]
194    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFileHandle/append)"]
195    #[doc = ""]
196    #[doc = "*This API requires the following crate features to be activated: `Blob`, `IdbFileHandle`, `IdbFileRequest`*"]
197    #[deprecated]
198    pub fn append_with_blob(
199        this: &IdbFileHandle,
200        value: &Blob,
201    ) -> Result<Option<IdbFileRequest>, JsValue>;
202    #[cfg(feature = "IdbFileRequest")]
203    # [wasm_bindgen (catch , method , structural , js_class = "IDBFileHandle" , js_name = flush)]
204    #[doc = "The `flush()` method."]
205    #[doc = ""]
206    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFileHandle/flush)"]
207    #[doc = ""]
208    #[doc = "*This API requires the following crate features to be activated: `IdbFileHandle`, `IdbFileRequest`*"]
209    #[deprecated]
210    pub fn flush(this: &IdbFileHandle) -> Result<Option<IdbFileRequest>, JsValue>;
211    #[cfg(feature = "IdbFileRequest")]
212    # [wasm_bindgen (catch , method , structural , js_class = "IDBFileHandle" , js_name = getMetadata)]
213    #[doc = "The `getMetadata()` method."]
214    #[doc = ""]
215    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFileHandle/getMetadata)"]
216    #[doc = ""]
217    #[doc = "*This API requires the following crate features to be activated: `IdbFileHandle`, `IdbFileRequest`*"]
218    #[deprecated]
219    pub fn get_metadata(this: &IdbFileHandle) -> Result<Option<IdbFileRequest>, JsValue>;
220    #[cfg(all(feature = "IdbFileMetadataParameters", feature = "IdbFileRequest",))]
221    # [wasm_bindgen (catch , method , structural , js_class = "IDBFileHandle" , js_name = getMetadata)]
222    #[doc = "The `getMetadata()` method."]
223    #[doc = ""]
224    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFileHandle/getMetadata)"]
225    #[doc = ""]
226    #[doc = "*This API requires the following crate features to be activated: `IdbFileHandle`, `IdbFileMetadataParameters`, `IdbFileRequest`*"]
227    #[deprecated]
228    pub fn get_metadata_with_parameters(
229        this: &IdbFileHandle,
230        parameters: &IdbFileMetadataParameters,
231    ) -> Result<Option<IdbFileRequest>, JsValue>;
232    #[cfg(feature = "IdbFileRequest")]
233    # [wasm_bindgen (catch , method , structural , js_class = "IDBFileHandle" , js_name = readAsArrayBuffer)]
234    #[doc = "The `readAsArrayBuffer()` method."]
235    #[doc = ""]
236    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFileHandle/readAsArrayBuffer)"]
237    #[doc = ""]
238    #[doc = "*This API requires the following crate features to be activated: `IdbFileHandle`, `IdbFileRequest`*"]
239    #[deprecated]
240    pub fn read_as_array_buffer_with_u32(
241        this: &IdbFileHandle,
242        size: u32,
243    ) -> Result<Option<IdbFileRequest>, JsValue>;
244    #[cfg(feature = "IdbFileRequest")]
245    # [wasm_bindgen (catch , method , structural , js_class = "IDBFileHandle" , js_name = readAsArrayBuffer)]
246    #[doc = "The `readAsArrayBuffer()` method."]
247    #[doc = ""]
248    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFileHandle/readAsArrayBuffer)"]
249    #[doc = ""]
250    #[doc = "*This API requires the following crate features to be activated: `IdbFileHandle`, `IdbFileRequest`*"]
251    #[deprecated]
252    pub fn read_as_array_buffer_with_f64(
253        this: &IdbFileHandle,
254        size: f64,
255    ) -> Result<Option<IdbFileRequest>, JsValue>;
256    #[cfg(feature = "IdbFileRequest")]
257    # [wasm_bindgen (catch , method , structural , js_class = "IDBFileHandle" , js_name = readAsText)]
258    #[doc = "The `readAsText()` method."]
259    #[doc = ""]
260    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFileHandle/readAsText)"]
261    #[doc = ""]
262    #[doc = "*This API requires the following crate features to be activated: `IdbFileHandle`, `IdbFileRequest`*"]
263    #[deprecated]
264    pub fn read_as_text_with_u32(
265        this: &IdbFileHandle,
266        size: u32,
267    ) -> Result<Option<IdbFileRequest>, JsValue>;
268    #[cfg(feature = "IdbFileRequest")]
269    # [wasm_bindgen (catch , method , structural , js_class = "IDBFileHandle" , js_name = readAsText)]
270    #[doc = "The `readAsText()` method."]
271    #[doc = ""]
272    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFileHandle/readAsText)"]
273    #[doc = ""]
274    #[doc = "*This API requires the following crate features to be activated: `IdbFileHandle`, `IdbFileRequest`*"]
275    #[deprecated]
276    pub fn read_as_text_with_f64(
277        this: &IdbFileHandle,
278        size: f64,
279    ) -> Result<Option<IdbFileRequest>, JsValue>;
280    #[cfg(feature = "IdbFileRequest")]
281    # [wasm_bindgen (catch , method , structural , js_class = "IDBFileHandle" , js_name = readAsText)]
282    #[doc = "The `readAsText()` method."]
283    #[doc = ""]
284    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFileHandle/readAsText)"]
285    #[doc = ""]
286    #[doc = "*This API requires the following crate features to be activated: `IdbFileHandle`, `IdbFileRequest`*"]
287    #[deprecated]
288    pub fn read_as_text_with_u32_and_encoding(
289        this: &IdbFileHandle,
290        size: u32,
291        encoding: Option<&str>,
292    ) -> Result<Option<IdbFileRequest>, JsValue>;
293    #[cfg(feature = "IdbFileRequest")]
294    # [wasm_bindgen (catch , method , structural , js_class = "IDBFileHandle" , js_name = readAsText)]
295    #[doc = "The `readAsText()` method."]
296    #[doc = ""]
297    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFileHandle/readAsText)"]
298    #[doc = ""]
299    #[doc = "*This API requires the following crate features to be activated: `IdbFileHandle`, `IdbFileRequest`*"]
300    #[deprecated]
301    pub fn read_as_text_with_f64_and_encoding(
302        this: &IdbFileHandle,
303        size: f64,
304        encoding: Option<&str>,
305    ) -> Result<Option<IdbFileRequest>, JsValue>;
306    #[cfg(feature = "IdbFileRequest")]
307    # [wasm_bindgen (catch , method , structural , js_class = "IDBFileHandle" , js_name = truncate)]
308    #[doc = "The `truncate()` method."]
309    #[doc = ""]
310    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFileHandle/truncate)"]
311    #[doc = ""]
312    #[doc = "*This API requires the following crate features to be activated: `IdbFileHandle`, `IdbFileRequest`*"]
313    #[deprecated]
314    pub fn truncate(this: &IdbFileHandle) -> Result<Option<IdbFileRequest>, JsValue>;
315    #[cfg(feature = "IdbFileRequest")]
316    # [wasm_bindgen (catch , method , structural , js_class = "IDBFileHandle" , js_name = truncate)]
317    #[doc = "The `truncate()` method."]
318    #[doc = ""]
319    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFileHandle/truncate)"]
320    #[doc = ""]
321    #[doc = "*This API requires the following crate features to be activated: `IdbFileHandle`, `IdbFileRequest`*"]
322    #[deprecated]
323    pub fn truncate_with_u32(
324        this: &IdbFileHandle,
325        size: u32,
326    ) -> Result<Option<IdbFileRequest>, JsValue>;
327    #[cfg(feature = "IdbFileRequest")]
328    # [wasm_bindgen (catch , method , structural , js_class = "IDBFileHandle" , js_name = truncate)]
329    #[doc = "The `truncate()` method."]
330    #[doc = ""]
331    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFileHandle/truncate)"]
332    #[doc = ""]
333    #[doc = "*This API requires the following crate features to be activated: `IdbFileHandle`, `IdbFileRequest`*"]
334    #[deprecated]
335    pub fn truncate_with_f64(
336        this: &IdbFileHandle,
337        size: f64,
338    ) -> Result<Option<IdbFileRequest>, JsValue>;
339    #[cfg(feature = "IdbFileRequest")]
340    # [wasm_bindgen (catch , method , structural , js_class = "IDBFileHandle" , js_name = write)]
341    #[doc = "The `write()` method."]
342    #[doc = ""]
343    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFileHandle/write)"]
344    #[doc = ""]
345    #[doc = "*This API requires the following crate features to be activated: `IdbFileHandle`, `IdbFileRequest`*"]
346    #[deprecated]
347    pub fn write_with_str(
348        this: &IdbFileHandle,
349        value: &str,
350    ) -> Result<Option<IdbFileRequest>, JsValue>;
351    #[cfg(feature = "IdbFileRequest")]
352    # [wasm_bindgen (catch , method , structural , js_class = "IDBFileHandle" , js_name = write)]
353    #[doc = "The `write()` method."]
354    #[doc = ""]
355    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFileHandle/write)"]
356    #[doc = ""]
357    #[doc = "*This API requires the following crate features to be activated: `IdbFileHandle`, `IdbFileRequest`*"]
358    #[deprecated]
359    pub fn write_with_array_buffer(
360        this: &IdbFileHandle,
361        value: &::js_sys::ArrayBuffer,
362    ) -> Result<Option<IdbFileRequest>, JsValue>;
363    #[cfg(feature = "IdbFileRequest")]
364    # [wasm_bindgen (catch , method , structural , js_class = "IDBFileHandle" , js_name = write)]
365    #[doc = "The `write()` method."]
366    #[doc = ""]
367    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFileHandle/write)"]
368    #[doc = ""]
369    #[doc = "*This API requires the following crate features to be activated: `IdbFileHandle`, `IdbFileRequest`*"]
370    #[deprecated]
371    pub fn write_with_array_buffer_view(
372        this: &IdbFileHandle,
373        value: &::js_sys::Object,
374    ) -> Result<Option<IdbFileRequest>, JsValue>;
375    #[cfg(feature = "IdbFileRequest")]
376    # [wasm_bindgen (catch , method , structural , js_class = "IDBFileHandle" , js_name = write)]
377    #[doc = "The `write()` method."]
378    #[doc = ""]
379    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFileHandle/write)"]
380    #[doc = ""]
381    #[doc = "*This API requires the following crate features to be activated: `IdbFileHandle`, `IdbFileRequest`*"]
382    #[deprecated]
383    pub fn write_with_u8_array(
384        this: &IdbFileHandle,
385        value: &[u8],
386    ) -> Result<Option<IdbFileRequest>, JsValue>;
387    #[cfg(feature = "IdbFileRequest")]
388    # [wasm_bindgen (catch , method , structural , js_class = "IDBFileHandle" , js_name = write)]
389    #[doc = "The `write()` method."]
390    #[doc = ""]
391    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFileHandle/write)"]
392    #[doc = ""]
393    #[doc = "*This API requires the following crate features to be activated: `IdbFileHandle`, `IdbFileRequest`*"]
394    #[deprecated]
395    pub fn write_with_js_u8_array(
396        this: &IdbFileHandle,
397        value: &::js_sys::Uint8Array,
398    ) -> Result<Option<IdbFileRequest>, JsValue>;
399    #[cfg(all(feature = "Blob", feature = "IdbFileRequest",))]
400    # [wasm_bindgen (catch , method , structural , js_class = "IDBFileHandle" , js_name = write)]
401    #[doc = "The `write()` method."]
402    #[doc = ""]
403    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFileHandle/write)"]
404    #[doc = ""]
405    #[doc = "*This API requires the following crate features to be activated: `Blob`, `IdbFileHandle`, `IdbFileRequest`*"]
406    #[deprecated]
407    pub fn write_with_blob(
408        this: &IdbFileHandle,
409        value: &Blob,
410    ) -> Result<Option<IdbFileRequest>, JsValue>;
411}