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