web_sys/features/
gen_FileSystemFileEntry.rs1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[wasm_bindgen]
6extern "C" {
7 #[wasm_bindgen(
8 extends = "FileSystemEntry",
9 extends = "::js_sys::Object",
10 js_name = "FileSystemFileEntry",
11 typescript_type = "FileSystemFileEntry"
12 )]
13 #[derive(Debug, Clone, PartialEq, Eq)]
14 #[doc = "The `FileSystemFileEntry` class."]
15 #[doc = ""]
16 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemFileEntry)"]
17 #[doc = ""]
18 #[doc = "*This API requires the following crate features to be activated: `FileSystemFileEntry`*"]
19 pub type FileSystemFileEntry;
20 #[wasm_bindgen(method, js_class = "FileSystemFileEntry", js_name = "file")]
21 #[doc = "The `file()` method."]
22 #[doc = ""]
23 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemFileEntry/file)"]
24 #[doc = ""]
25 #[doc = "*This API requires the following crate features to be activated: `FileSystemFileEntry`*"]
26 pub fn file_with_callback(this: &FileSystemFileEntry, success_callback: &::js_sys::Function);
27 #[cfg(feature = "FileCallback")]
28 #[wasm_bindgen(method, js_class = "FileSystemFileEntry", js_name = "file")]
29 #[doc = "The `file()` method."]
30 #[doc = ""]
31 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemFileEntry/file)"]
32 #[doc = ""]
33 #[doc = "*This API requires the following crate features to be activated: `FileCallback`, `FileSystemFileEntry`*"]
34 pub fn file_with_file_callback(this: &FileSystemFileEntry, success_callback: &FileCallback);
35 #[wasm_bindgen(method, js_class = "FileSystemFileEntry", js_name = "file")]
36 #[doc = "The `file()` method."]
37 #[doc = ""]
38 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemFileEntry/file)"]
39 #[doc = ""]
40 #[doc = "*This API requires the following crate features to be activated: `FileSystemFileEntry`*"]
41 pub fn file_with_callback_and_callback(
42 this: &FileSystemFileEntry,
43 success_callback: &::js_sys::Function,
44 error_callback: &::js_sys::Function,
45 );
46 #[cfg(feature = "FileCallback")]
47 #[wasm_bindgen(method, js_class = "FileSystemFileEntry", js_name = "file")]
48 #[doc = "The `file()` method."]
49 #[doc = ""]
50 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemFileEntry/file)"]
51 #[doc = ""]
52 #[doc = "*This API requires the following crate features to be activated: `FileCallback`, `FileSystemFileEntry`*"]
53 pub fn file_with_file_callback_and_callback(
54 this: &FileSystemFileEntry,
55 success_callback: &FileCallback,
56 error_callback: &::js_sys::Function,
57 );
58 #[cfg(feature = "ErrorCallback")]
59 #[wasm_bindgen(method, js_class = "FileSystemFileEntry", js_name = "file")]
60 #[doc = "The `file()` method."]
61 #[doc = ""]
62 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemFileEntry/file)"]
63 #[doc = ""]
64 #[doc = "*This API requires the following crate features to be activated: `ErrorCallback`, `FileSystemFileEntry`*"]
65 pub fn file_with_callback_and_error_callback(
66 this: &FileSystemFileEntry,
67 success_callback: &::js_sys::Function,
68 error_callback: &ErrorCallback,
69 );
70 #[cfg(all(feature = "ErrorCallback", feature = "FileCallback",))]
71 #[wasm_bindgen(method, js_class = "FileSystemFileEntry", js_name = "file")]
72 #[doc = "The `file()` method."]
73 #[doc = ""]
74 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemFileEntry/file)"]
75 #[doc = ""]
76 #[doc = "*This API requires the following crate features to be activated: `ErrorCallback`, `FileCallback`, `FileSystemFileEntry`*"]
77 pub fn file_with_file_callback_and_error_callback(
78 this: &FileSystemFileEntry,
79 success_callback: &FileCallback,
80 error_callback: &ErrorCallback,
81 );
82}