Skip to main content

FileSystem

Trait FileSystem 

Source
pub trait FileSystem {
    // Required methods
    async fn read_text_file(&self, path: &Path) -> Result<String>;
    async fn write_text_file(&self, path: &Path, contents: String) -> Result<()>;
}

Required Methods§

Source

async fn read_text_file(&self, path: &Path) -> Result<String>

Source

async fn write_text_file(&self, path: &Path, contents: String) -> Result<()>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§