feat: remote fs host bridge

This commit is contained in:
veeso
2024-10-05 19:25:20 +02:00
parent 87f9369041
commit abec2d5747
7 changed files with 378 additions and 17 deletions

View File

@@ -61,5 +61,12 @@ pub trait HostBridge {
fn open_file(&mut self, file: &Path) -> HostResult<Box<dyn Read + Send>>;
/// Open file for writing
fn create_file(&mut self, file: &Path) -> HostResult<Box<dyn Write + Send>>;
fn create_file(
&mut self,
file: &Path,
metadata: &Metadata,
) -> HostResult<Box<dyn Write + Send>>;
/// Finalize write operation
fn finalize_write(&mut self, writer: Box<dyn Write + Send>) -> HostResult<()>;
}