web_sys/features/
gen_FileSystemFileHandle.rs1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[wasm_bindgen]
6extern "C" {
7 # [wasm_bindgen (extends = FileSystemHandle , extends = :: js_sys :: Object , js_name = FileSystemFileHandle , typescript_type = "FileSystemFileHandle")]
8 #[derive(Debug, Clone, PartialEq, Eq)]
9 #[doc = "The `FileSystemFileHandle` class."]
10 #[doc = ""]
11 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemFileHandle)"]
12 #[doc = ""]
13 #[doc = "*This API requires the following crate features to be activated: `FileSystemFileHandle`*"]
14 pub type FileSystemFileHandle;
15 # [wasm_bindgen (method , structural , js_class = "FileSystemFileHandle" , js_name = createSyncAccessHandle)]
16 #[doc = "The `createSyncAccessHandle()` method."]
17 #[doc = ""]
18 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemFileHandle/createSyncAccessHandle)"]
19 #[doc = ""]
20 #[doc = "*This API requires the following crate features to be activated: `FileSystemFileHandle`*"]
21 pub fn create_sync_access_handle(this: &FileSystemFileHandle) -> ::js_sys::Promise;
22 # [wasm_bindgen (method , structural , js_class = "FileSystemFileHandle" , js_name = createWritable)]
23 #[doc = "The `createWritable()` method."]
24 #[doc = ""]
25 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemFileHandle/createWritable)"]
26 #[doc = ""]
27 #[doc = "*This API requires the following crate features to be activated: `FileSystemFileHandle`*"]
28 pub fn create_writable(this: &FileSystemFileHandle) -> ::js_sys::Promise;
29 #[cfg(feature = "FileSystemCreateWritableOptions")]
30 # [wasm_bindgen (method , structural , js_class = "FileSystemFileHandle" , js_name = createWritable)]
31 #[doc = "The `createWritable()` method."]
32 #[doc = ""]
33 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemFileHandle/createWritable)"]
34 #[doc = ""]
35 #[doc = "*This API requires the following crate features to be activated: `FileSystemCreateWritableOptions`, `FileSystemFileHandle`*"]
36 pub fn create_writable_with_options(
37 this: &FileSystemFileHandle,
38 options: &FileSystemCreateWritableOptions,
39 ) -> ::js_sys::Promise;
40 # [wasm_bindgen (method , structural , js_class = "FileSystemFileHandle" , js_name = getFile)]
41 #[doc = "The `getFile()` method."]
42 #[doc = ""]
43 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemFileHandle/getFile)"]
44 #[doc = ""]
45 #[doc = "*This API requires the following crate features to be activated: `FileSystemFileHandle`*"]
46 pub fn get_file(this: &FileSystemFileHandle) -> ::js_sys::Promise;
47}