web_sys/features/
gen_FileSystemDirectoryReader.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 = FileSystemDirectoryReader , typescript_type = "FileSystemDirectoryReader")]
8 #[derive(Debug, Clone, PartialEq, Eq)]
9 #[doc = "The `FileSystemDirectoryReader` class."]
10 #[doc = ""]
11 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemDirectoryReader)"]
12 #[doc = ""]
13 #[doc = "*This API requires the following crate features to be activated: `FileSystemDirectoryReader`*"]
14 pub type FileSystemDirectoryReader;
15 # [wasm_bindgen (catch , method , structural , js_class = "FileSystemDirectoryReader" , js_name = readEntries)]
16 #[doc = "The `readEntries()` method."]
17 #[doc = ""]
18 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemDirectoryReader/readEntries)"]
19 #[doc = ""]
20 #[doc = "*This API requires the following crate features to be activated: `FileSystemDirectoryReader`*"]
21 pub fn read_entries_with_callback(
22 this: &FileSystemDirectoryReader,
23 success_callback: &::js_sys::Function,
24 ) -> Result<(), JsValue>;
25 #[cfg(feature = "FileSystemEntriesCallback")]
26 # [wasm_bindgen (catch , method , structural , js_class = "FileSystemDirectoryReader" , js_name = readEntries)]
27 #[doc = "The `readEntries()` method."]
28 #[doc = ""]
29 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemDirectoryReader/readEntries)"]
30 #[doc = ""]
31 #[doc = "*This API requires the following crate features to be activated: `FileSystemDirectoryReader`, `FileSystemEntriesCallback`*"]
32 pub fn read_entries_with_file_system_entries_callback(
33 this: &FileSystemDirectoryReader,
34 success_callback: &FileSystemEntriesCallback,
35 ) -> Result<(), JsValue>;
36 # [wasm_bindgen (catch , method , structural , js_class = "FileSystemDirectoryReader" , js_name = readEntries)]
37 #[doc = "The `readEntries()` method."]
38 #[doc = ""]
39 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemDirectoryReader/readEntries)"]
40 #[doc = ""]
41 #[doc = "*This API requires the following crate features to be activated: `FileSystemDirectoryReader`*"]
42 pub fn read_entries_with_callback_and_callback(
43 this: &FileSystemDirectoryReader,
44 success_callback: &::js_sys::Function,
45 error_callback: &::js_sys::Function,
46 ) -> Result<(), JsValue>;
47 #[cfg(feature = "FileSystemEntriesCallback")]
48 # [wasm_bindgen (catch , method , structural , js_class = "FileSystemDirectoryReader" , js_name = readEntries)]
49 #[doc = "The `readEntries()` method."]
50 #[doc = ""]
51 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemDirectoryReader/readEntries)"]
52 #[doc = ""]
53 #[doc = "*This API requires the following crate features to be activated: `FileSystemDirectoryReader`, `FileSystemEntriesCallback`*"]
54 pub fn read_entries_with_file_system_entries_callback_and_callback(
55 this: &FileSystemDirectoryReader,
56 success_callback: &FileSystemEntriesCallback,
57 error_callback: &::js_sys::Function,
58 ) -> Result<(), JsValue>;
59 #[cfg(feature = "ErrorCallback")]
60 # [wasm_bindgen (catch , method , structural , js_class = "FileSystemDirectoryReader" , js_name = readEntries)]
61 #[doc = "The `readEntries()` method."]
62 #[doc = ""]
63 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemDirectoryReader/readEntries)"]
64 #[doc = ""]
65 #[doc = "*This API requires the following crate features to be activated: `ErrorCallback`, `FileSystemDirectoryReader`*"]
66 pub fn read_entries_with_callback_and_error_callback(
67 this: &FileSystemDirectoryReader,
68 success_callback: &::js_sys::Function,
69 error_callback: &ErrorCallback,
70 ) -> Result<(), JsValue>;
71 #[cfg(all(feature = "ErrorCallback", feature = "FileSystemEntriesCallback",))]
72 # [wasm_bindgen (catch , method , structural , js_class = "FileSystemDirectoryReader" , js_name = readEntries)]
73 #[doc = "The `readEntries()` method."]
74 #[doc = ""]
75 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemDirectoryReader/readEntries)"]
76 #[doc = ""]
77 #[doc = "*This API requires the following crate features to be activated: `ErrorCallback`, `FileSystemDirectoryReader`, `FileSystemEntriesCallback`*"]
78 pub fn read_entries_with_file_system_entries_callback_and_error_callback(
79 this: &FileSystemDirectoryReader,
80 success_callback: &FileSystemEntriesCallback,
81 error_callback: &ErrorCallback,
82 ) -> Result<(), JsValue>;
83}