MCPcopy Create free account
hub / github.com/SeaQL/FireDBG.for.Rust / create_file_sink

Function create_file_sink

parser/src/serde.rs:30–41  ·  view source on GitHub ↗
(path: T)

Source from the content-addressed store, hash-verified

28}
29
30async fn create_file_sink<T>(path: T) -> Result<sea_streamer_file::FileSink>
31where
32 T: Into<String>,
33{
34 let file_id = sea_streamer_file::FileId::new(path);
35 let async_file = sea_streamer_file::AsyncFile::new_ow(file_id)
36 .await
37 .context("Fail to create async file")?;
38 let res = sea_streamer_file::FileSink::new(async_file, 1_000_000_000)
39 .context("Fail to create file sink")?;
40 Ok(res)
41}
42
43pub async fn from_bson_file<T>(path: &str) -> Result<T>
44where

Callers 2

to_bson_fileFunction · 0.85
to_json_fileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected