]> git.proxmox.com Git - rustc.git/blame - vendor/web-sys/src/features/gen_FileSystemSyncAccessHandle.rs
New upstream version 1.76.0+dfsg1
[rustc.git] / vendor / web-sys / src / features / gen_FileSystemSyncAccessHandle.rs
CommitLineData
fe692bf9
FG
1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[cfg(web_sys_unstable_apis)]
6#[wasm_bindgen]
7extern "C" {
8 # [wasm_bindgen (extends = :: js_sys :: Object , js_name = FileSystemSyncAccessHandle , typescript_type = "FileSystemSyncAccessHandle")]
9 #[derive(Debug, Clone, PartialEq, Eq)]
10 #[doc = "The `FileSystemSyncAccessHandle` class."]
11 #[doc = ""]
12 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemSyncAccessHandle)"]
13 #[doc = ""]
14 #[doc = "*This API requires the following crate features to be activated: `FileSystemSyncAccessHandle`*"]
15 #[doc = ""]
16 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
17 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
18 pub type FileSystemSyncAccessHandle;
19 #[cfg(web_sys_unstable_apis)]
20 # [wasm_bindgen (method , structural , js_class = "FileSystemSyncAccessHandle" , js_name = close)]
21 #[doc = "The `close()` method."]
22 #[doc = ""]
23 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemSyncAccessHandle/close)"]
24 #[doc = ""]
25 #[doc = "*This API requires the following crate features to be activated: `FileSystemSyncAccessHandle`*"]
26 #[doc = ""]
27 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
28 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
29 pub fn close(this: &FileSystemSyncAccessHandle);
30 #[cfg(web_sys_unstable_apis)]
31 # [wasm_bindgen (catch , method , structural , js_class = "FileSystemSyncAccessHandle" , js_name = flush)]
32 #[doc = "The `flush()` method."]
33 #[doc = ""]
34 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemSyncAccessHandle/flush)"]
35 #[doc = ""]
36 #[doc = "*This API requires the following crate features to be activated: `FileSystemSyncAccessHandle`*"]
37 #[doc = ""]
38 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
39 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
40 pub fn flush(this: &FileSystemSyncAccessHandle) -> Result<(), JsValue>;
41 #[cfg(web_sys_unstable_apis)]
42 # [wasm_bindgen (catch , method , structural , js_class = "FileSystemSyncAccessHandle" , js_name = getSize)]
43 #[doc = "The `getSize()` method."]
44 #[doc = ""]
45 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemSyncAccessHandle/getSize)"]
46 #[doc = ""]
47 #[doc = "*This API requires the following crate features to be activated: `FileSystemSyncAccessHandle`*"]
48 #[doc = ""]
49 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
50 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
51 pub fn get_size(this: &FileSystemSyncAccessHandle) -> Result<f64, JsValue>;
52 #[cfg(web_sys_unstable_apis)]
53 # [wasm_bindgen (catch , method , structural , js_class = "FileSystemSyncAccessHandle" , js_name = read)]
54 #[doc = "The `read()` method."]
55 #[doc = ""]
56 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemSyncAccessHandle/read)"]
57 #[doc = ""]
58 #[doc = "*This API requires the following crate features to be activated: `FileSystemSyncAccessHandle`*"]
59 #[doc = ""]
60 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
61 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
62 pub fn read_with_buffer_source(
63 this: &FileSystemSyncAccessHandle,
64 buffer: &::js_sys::Object,
65 ) -> Result<f64, JsValue>;
66 #[cfg(web_sys_unstable_apis)]
67 # [wasm_bindgen (catch , method , structural , js_class = "FileSystemSyncAccessHandle" , js_name = read)]
68 #[doc = "The `read()` method."]
69 #[doc = ""]
70 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemSyncAccessHandle/read)"]
71 #[doc = ""]
72 #[doc = "*This API requires the following crate features to be activated: `FileSystemSyncAccessHandle`*"]
73 #[doc = ""]
74 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
75 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
76 pub fn read_with_u8_array(
77 this: &FileSystemSyncAccessHandle,
78 buffer: &mut [u8],
79 ) -> Result<f64, JsValue>;
80 #[cfg(web_sys_unstable_apis)]
81 #[cfg(feature = "FileSystemReadWriteOptions")]
82 # [wasm_bindgen (catch , method , structural , js_class = "FileSystemSyncAccessHandle" , js_name = read)]
83 #[doc = "The `read()` method."]
84 #[doc = ""]
85 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemSyncAccessHandle/read)"]
86 #[doc = ""]
87 #[doc = "*This API requires the following crate features to be activated: `FileSystemReadWriteOptions`, `FileSystemSyncAccessHandle`*"]
88 #[doc = ""]
89 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
90 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
91 pub fn read_with_buffer_source_and_options(
92 this: &FileSystemSyncAccessHandle,
93 buffer: &::js_sys::Object,
94 options: &FileSystemReadWriteOptions,
95 ) -> Result<f64, JsValue>;
96 #[cfg(web_sys_unstable_apis)]
97 #[cfg(feature = "FileSystemReadWriteOptions")]
98 # [wasm_bindgen (catch , method , structural , js_class = "FileSystemSyncAccessHandle" , js_name = read)]
99 #[doc = "The `read()` method."]
100 #[doc = ""]
101 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemSyncAccessHandle/read)"]
102 #[doc = ""]
103 #[doc = "*This API requires the following crate features to be activated: `FileSystemReadWriteOptions`, `FileSystemSyncAccessHandle`*"]
104 #[doc = ""]
105 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
106 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
107 pub fn read_with_u8_array_and_options(
108 this: &FileSystemSyncAccessHandle,
109 buffer: &mut [u8],
110 options: &FileSystemReadWriteOptions,
111 ) -> Result<f64, JsValue>;
112 #[cfg(web_sys_unstable_apis)]
113 # [wasm_bindgen (catch , method , structural , js_class = "FileSystemSyncAccessHandle" , js_name = truncate)]
114 #[doc = "The `truncate()` method."]
115 #[doc = ""]
116 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemSyncAccessHandle/truncate)"]
117 #[doc = ""]
118 #[doc = "*This API requires the following crate features to be activated: `FileSystemSyncAccessHandle`*"]
119 #[doc = ""]
120 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
121 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
122 pub fn truncate_with_u32(
123 this: &FileSystemSyncAccessHandle,
124 new_size: u32,
125 ) -> Result<(), JsValue>;
126 #[cfg(web_sys_unstable_apis)]
127 # [wasm_bindgen (catch , method , structural , js_class = "FileSystemSyncAccessHandle" , js_name = truncate)]
128 #[doc = "The `truncate()` method."]
129 #[doc = ""]
130 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemSyncAccessHandle/truncate)"]
131 #[doc = ""]
132 #[doc = "*This API requires the following crate features to be activated: `FileSystemSyncAccessHandle`*"]
133 #[doc = ""]
134 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
135 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
136 pub fn truncate_with_f64(
137 this: &FileSystemSyncAccessHandle,
138 new_size: f64,
139 ) -> Result<(), JsValue>;
140 #[cfg(web_sys_unstable_apis)]
141 # [wasm_bindgen (catch , method , structural , js_class = "FileSystemSyncAccessHandle" , js_name = write)]
142 #[doc = "The `write()` method."]
143 #[doc = ""]
144 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemSyncAccessHandle/write)"]
145 #[doc = ""]
146 #[doc = "*This API requires the following crate features to be activated: `FileSystemSyncAccessHandle`*"]
147 #[doc = ""]
148 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
149 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
150 pub fn write_with_buffer_source(
151 this: &FileSystemSyncAccessHandle,
152 buffer: &::js_sys::Object,
153 ) -> Result<f64, JsValue>;
154 #[cfg(web_sys_unstable_apis)]
155 # [wasm_bindgen (catch , method , structural , js_class = "FileSystemSyncAccessHandle" , js_name = write)]
156 #[doc = "The `write()` method."]
157 #[doc = ""]
158 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemSyncAccessHandle/write)"]
159 #[doc = ""]
160 #[doc = "*This API requires the following crate features to be activated: `FileSystemSyncAccessHandle`*"]
161 #[doc = ""]
162 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
163 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
164 pub fn write_with_u8_array(
165 this: &FileSystemSyncAccessHandle,
4b012472 166 buffer: &[u8],
fe692bf9
FG
167 ) -> Result<f64, JsValue>;
168 #[cfg(web_sys_unstable_apis)]
169 #[cfg(feature = "FileSystemReadWriteOptions")]
170 # [wasm_bindgen (catch , method , structural , js_class = "FileSystemSyncAccessHandle" , js_name = write)]
171 #[doc = "The `write()` method."]
172 #[doc = ""]
173 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemSyncAccessHandle/write)"]
174 #[doc = ""]
175 #[doc = "*This API requires the following crate features to be activated: `FileSystemReadWriteOptions`, `FileSystemSyncAccessHandle`*"]
176 #[doc = ""]
177 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
178 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
179 pub fn write_with_buffer_source_and_options(
180 this: &FileSystemSyncAccessHandle,
181 buffer: &::js_sys::Object,
182 options: &FileSystemReadWriteOptions,
183 ) -> Result<f64, JsValue>;
184 #[cfg(web_sys_unstable_apis)]
185 #[cfg(feature = "FileSystemReadWriteOptions")]
186 # [wasm_bindgen (catch , method , structural , js_class = "FileSystemSyncAccessHandle" , js_name = write)]
187 #[doc = "The `write()` method."]
188 #[doc = ""]
189 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemSyncAccessHandle/write)"]
190 #[doc = ""]
191 #[doc = "*This API requires the following crate features to be activated: `FileSystemReadWriteOptions`, `FileSystemSyncAccessHandle`*"]
192 #[doc = ""]
193 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
194 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
195 pub fn write_with_u8_array_and_options(
196 this: &FileSystemSyncAccessHandle,
4b012472 197 buffer: &[u8],
fe692bf9
FG
198 options: &FileSystemReadWriteOptions,
199 ) -> Result<f64, JsValue>;
200}