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§
async fn read_text_file(&self, path: &Path) -> Result<String>
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".