Skip to main content

NamespaceFileSystem

Trait NamespaceFileSystem 

Source
pub trait NamespaceFileSystem: FileSystem {
    // Required methods
    fn remove_one(&mut self, path: &Path, recursive: bool) -> VfResult<()>;
    fn remove_dir_contents(&mut self, path: &Path) -> VfResult<()>;
    fn rename_one(&mut self, from: &Path, to: &Path) -> VfResult<()>;
}
Expand description

Namespace mutations shared by files and directories.

Required Methods§

Source

fn remove_one(&mut self, path: &Path, recursive: bool) -> VfResult<()>

Source

fn remove_dir_contents(&mut self, path: &Path) -> VfResult<()>

Remove the contents of a directory, keeping the directory itself.

Source

fn rename_one(&mut self, from: &Path, to: &Path) -> VfResult<()>

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§