]> git.proxmox.com Git - rustc.git/blame - vendor/web-sys/src/features/gen_FileSystemWritableFileStream.rs
New upstream version 1.76.0+dfsg1
[rustc.git] / vendor / web-sys / src / features / gen_FileSystemWritableFileStream.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 = WritableStream , extends = :: js_sys :: Object , js_name = FileSystemWritableFileStream , typescript_type = "FileSystemWritableFileStream")]
9 #[derive(Debug, Clone, PartialEq, Eq)]
10 #[doc = "The `FileSystemWritableFileStream` class."]
11 #[doc = ""]
12 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemWritableFileStream)"]
13 #[doc = ""]
14 #[doc = "*This API requires the following crate features to be activated: `FileSystemWritableFileStream`*"]
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 FileSystemWritableFileStream;
19 #[cfg(web_sys_unstable_apis)]
20 # [wasm_bindgen (catch , method , structural , js_class = "FileSystemWritableFileStream" , js_name = seek)]
21 #[doc = "The `seek()` method."]
22 #[doc = ""]
23 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemWritableFileStream/seek)"]
24 #[doc = ""]
25 #[doc = "*This API requires the following crate features to be activated: `FileSystemWritableFileStream`*"]
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 seek_with_u32(
30 this: &FileSystemWritableFileStream,
31 position: u32,
32 ) -> Result<::js_sys::Promise, JsValue>;
33 #[cfg(web_sys_unstable_apis)]
34 # [wasm_bindgen (catch , method , structural , js_class = "FileSystemWritableFileStream" , js_name = seek)]
35 #[doc = "The `seek()` method."]
36 #[doc = ""]
37 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemWritableFileStream/seek)"]
38 #[doc = ""]
39 #[doc = "*This API requires the following crate features to be activated: `FileSystemWritableFileStream`*"]
40 #[doc = ""]
41 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
42 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
43 pub fn seek_with_f64(
44 this: &FileSystemWritableFileStream,
45 position: f64,
46 ) -> Result<::js_sys::Promise, JsValue>;
47 #[cfg(web_sys_unstable_apis)]
48 # [wasm_bindgen (catch , method , structural , js_class = "FileSystemWritableFileStream" , js_name = truncate)]
49 #[doc = "The `truncate()` method."]
50 #[doc = ""]
51 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemWritableFileStream/truncate)"]
52 #[doc = ""]
53 #[doc = "*This API requires the following crate features to be activated: `FileSystemWritableFileStream`*"]
54 #[doc = ""]
55 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
56 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
57 pub fn truncate_with_u32(
58 this: &FileSystemWritableFileStream,
59 size: u32,
60 ) -> Result<::js_sys::Promise, JsValue>;
61 #[cfg(web_sys_unstable_apis)]
62 # [wasm_bindgen (catch , method , structural , js_class = "FileSystemWritableFileStream" , js_name = truncate)]
63 #[doc = "The `truncate()` method."]
64 #[doc = ""]
65 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemWritableFileStream/truncate)"]
66 #[doc = ""]
67 #[doc = "*This API requires the following crate features to be activated: `FileSystemWritableFileStream`*"]
68 #[doc = ""]
69 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
70 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
71 pub fn truncate_with_f64(
72 this: &FileSystemWritableFileStream,
73 size: f64,
74 ) -> Result<::js_sys::Promise, JsValue>;
75 #[cfg(web_sys_unstable_apis)]
76 # [wasm_bindgen (catch , method , structural , js_class = "FileSystemWritableFileStream" , js_name = write)]
77 #[doc = "The `write()` method."]
78 #[doc = ""]
79 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemWritableFileStream/write)"]
80 #[doc = ""]
81 #[doc = "*This API requires the following crate features to be activated: `FileSystemWritableFileStream`*"]
82 #[doc = ""]
83 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
84 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
85 pub fn write_with_buffer_source(
86 this: &FileSystemWritableFileStream,
87 data: &::js_sys::Object,
88 ) -> Result<::js_sys::Promise, JsValue>;
89 #[cfg(web_sys_unstable_apis)]
90 # [wasm_bindgen (catch , method , structural , js_class = "FileSystemWritableFileStream" , js_name = write)]
91 #[doc = "The `write()` method."]
92 #[doc = ""]
93 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemWritableFileStream/write)"]
94 #[doc = ""]
95 #[doc = "*This API requires the following crate features to be activated: `FileSystemWritableFileStream`*"]
96 #[doc = ""]
97 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
98 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
99 pub fn write_with_u8_array(
100 this: &FileSystemWritableFileStream,
4b012472 101 data: &[u8],
fe692bf9
FG
102 ) -> Result<::js_sys::Promise, JsValue>;
103 #[cfg(web_sys_unstable_apis)]
104 #[cfg(feature = "Blob")]
105 # [wasm_bindgen (catch , method , structural , js_class = "FileSystemWritableFileStream" , js_name = write)]
106 #[doc = "The `write()` method."]
107 #[doc = ""]
108 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemWritableFileStream/write)"]
109 #[doc = ""]
110 #[doc = "*This API requires the following crate features to be activated: `Blob`, `FileSystemWritableFileStream`*"]
111 #[doc = ""]
112 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
113 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
114 pub fn write_with_blob(
115 this: &FileSystemWritableFileStream,
116 data: &Blob,
117 ) -> Result<::js_sys::Promise, JsValue>;
118 #[cfg(web_sys_unstable_apis)]
119 # [wasm_bindgen (catch , method , structural , js_class = "FileSystemWritableFileStream" , js_name = write)]
120 #[doc = "The `write()` method."]
121 #[doc = ""]
122 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemWritableFileStream/write)"]
123 #[doc = ""]
124 #[doc = "*This API requires the following crate features to be activated: `FileSystemWritableFileStream`*"]
125 #[doc = ""]
126 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
127 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
128 pub fn write_with_str(
129 this: &FileSystemWritableFileStream,
130 data: &str,
131 ) -> Result<::js_sys::Promise, JsValue>;
132 #[cfg(web_sys_unstable_apis)]
133 #[cfg(feature = "WriteParams")]
134 # [wasm_bindgen (catch , method , structural , js_class = "FileSystemWritableFileStream" , js_name = write)]
135 #[doc = "The `write()` method."]
136 #[doc = ""]
137 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemWritableFileStream/write)"]
138 #[doc = ""]
139 #[doc = "*This API requires the following crate features to be activated: `FileSystemWritableFileStream`, `WriteParams`*"]
140 #[doc = ""]
141 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
142 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
143 pub fn write_with_write_params(
144 this: &FileSystemWritableFileStream,
145 data: &WriteParams,
146 ) -> Result<::js_sys::Promise, JsValue>;
147}