web_sys/features/
gen_FileSystemFileEntry.rs

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