web_sys/features/
gen_FileSystemWritableFileStream.rs1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[wasm_bindgen]
6extern "C" {
7 # [wasm_bindgen (extends = WritableStream , extends = :: js_sys :: Object , js_name = FileSystemWritableFileStream , typescript_type = "FileSystemWritableFileStream")]
8 #[derive(Debug, Clone, PartialEq, Eq)]
9 #[doc = "The `FileSystemWritableFileStream` class."]
10 #[doc = ""]
11 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemWritableFileStream)"]
12 #[doc = ""]
13 #[doc = "*This API requires the following crate features to be activated: `FileSystemWritableFileStream`*"]
14 pub type FileSystemWritableFileStream;
15 # [wasm_bindgen (catch , method , structural , js_class = "FileSystemWritableFileStream" , js_name = seek)]
16 #[doc = "The `seek()` method."]
17 #[doc = ""]
18 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemWritableFileStream/seek)"]
19 #[doc = ""]
20 #[doc = "*This API requires the following crate features to be activated: `FileSystemWritableFileStream`*"]
21 pub fn seek_with_u32(
22 this: &FileSystemWritableFileStream,
23 position: u32,
24 ) -> Result<::js_sys::Promise, JsValue>;
25 # [wasm_bindgen (catch , method , structural , js_class = "FileSystemWritableFileStream" , js_name = seek)]
26 #[doc = "The `seek()` method."]
27 #[doc = ""]
28 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemWritableFileStream/seek)"]
29 #[doc = ""]
30 #[doc = "*This API requires the following crate features to be activated: `FileSystemWritableFileStream`*"]
31 pub fn seek_with_f64(
32 this: &FileSystemWritableFileStream,
33 position: f64,
34 ) -> Result<::js_sys::Promise, JsValue>;
35 # [wasm_bindgen (catch , method , structural , js_class = "FileSystemWritableFileStream" , js_name = truncate)]
36 #[doc = "The `truncate()` method."]
37 #[doc = ""]
38 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemWritableFileStream/truncate)"]
39 #[doc = ""]
40 #[doc = "*This API requires the following crate features to be activated: `FileSystemWritableFileStream`*"]
41 pub fn truncate_with_u32(
42 this: &FileSystemWritableFileStream,
43 size: u32,
44 ) -> Result<::js_sys::Promise, JsValue>;
45 # [wasm_bindgen (catch , method , structural , js_class = "FileSystemWritableFileStream" , js_name = truncate)]
46 #[doc = "The `truncate()` method."]
47 #[doc = ""]
48 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemWritableFileStream/truncate)"]
49 #[doc = ""]
50 #[doc = "*This API requires the following crate features to be activated: `FileSystemWritableFileStream`*"]
51 pub fn truncate_with_f64(
52 this: &FileSystemWritableFileStream,
53 size: f64,
54 ) -> Result<::js_sys::Promise, JsValue>;
55 # [wasm_bindgen (catch , method , structural , js_class = "FileSystemWritableFileStream" , js_name = write)]
56 #[doc = "The `write()` method."]
57 #[doc = ""]
58 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemWritableFileStream/write)"]
59 #[doc = ""]
60 #[doc = "*This API requires the following crate features to be activated: `FileSystemWritableFileStream`*"]
61 pub fn write_with_buffer_source(
62 this: &FileSystemWritableFileStream,
63 data: &::js_sys::Object,
64 ) -> Result<::js_sys::Promise, JsValue>;
65 # [wasm_bindgen (catch , method , structural , js_class = "FileSystemWritableFileStream" , js_name = write)]
66 #[doc = "The `write()` method."]
67 #[doc = ""]
68 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemWritableFileStream/write)"]
69 #[doc = ""]
70 #[doc = "*This API requires the following crate features to be activated: `FileSystemWritableFileStream`*"]
71 pub fn write_with_u8_array(
72 this: &FileSystemWritableFileStream,
73 data: &[u8],
74 ) -> Result<::js_sys::Promise, JsValue>;
75 # [wasm_bindgen (catch , method , structural , js_class = "FileSystemWritableFileStream" , js_name = write)]
76 #[doc = "The `write()` method."]
77 #[doc = ""]
78 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemWritableFileStream/write)"]
79 #[doc = ""]
80 #[doc = "*This API requires the following crate features to be activated: `FileSystemWritableFileStream`*"]
81 pub fn write_with_js_u8_array(
82 this: &FileSystemWritableFileStream,
83 data: &::js_sys::Uint8Array,
84 ) -> Result<::js_sys::Promise, JsValue>;
85 #[cfg(feature = "Blob")]
86 # [wasm_bindgen (catch , method , structural , js_class = "FileSystemWritableFileStream" , js_name = write)]
87 #[doc = "The `write()` method."]
88 #[doc = ""]
89 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemWritableFileStream/write)"]
90 #[doc = ""]
91 #[doc = "*This API requires the following crate features to be activated: `Blob`, `FileSystemWritableFileStream`*"]
92 pub fn write_with_blob(
93 this: &FileSystemWritableFileStream,
94 data: &Blob,
95 ) -> Result<::js_sys::Promise, JsValue>;
96 # [wasm_bindgen (catch , method , structural , js_class = "FileSystemWritableFileStream" , js_name = write)]
97 #[doc = "The `write()` method."]
98 #[doc = ""]
99 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemWritableFileStream/write)"]
100 #[doc = ""]
101 #[doc = "*This API requires the following crate features to be activated: `FileSystemWritableFileStream`*"]
102 pub fn write_with_str(
103 this: &FileSystemWritableFileStream,
104 data: &str,
105 ) -> Result<::js_sys::Promise, JsValue>;
106 #[cfg(feature = "WriteParams")]
107 # [wasm_bindgen (catch , method , structural , js_class = "FileSystemWritableFileStream" , js_name = write)]
108 #[doc = "The `write()` method."]
109 #[doc = ""]
110 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemWritableFileStream/write)"]
111 #[doc = ""]
112 #[doc = "*This API requires the following crate features to be activated: `FileSystemWritableFileStream`, `WriteParams`*"]
113 pub fn write_with_write_params(
114 this: &FileSystemWritableFileStream,
115 data: &WriteParams,
116 ) -> Result<::js_sys::Promise, JsValue>;
117}