pub trait FileSystemIsolated: FileSystemProvider {
type HostFileSystem: FileSystem;
// Required methods
fn isolated_root(&mut self) -> PathBuf;
fn non_isolated_file_system() -> Self::HostFileSystem;
// Provided method
fn validate_path<P: AsRef<Path>>(&mut self, path: P) -> IoResult<PathBuf> { ... }
}Required Associated Types§
Required Methods§
Sourcefn isolated_root(&mut self) -> PathBuf
fn isolated_root(&mut self) -> PathBuf
The root of this isolated file system. Cant only read and write file/dir inside this root.
fn non_isolated_file_system() -> Self::HostFileSystem
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".