pub trait UpdateFileSystem {
// Required methods
fn exists(&self, path: &Path) -> bool;
fn rename(&self, from: &Path, to: &Path) -> Result<()>;
fn copy(&self, from: &Path, to: &Path) -> Result<u64>;
fn remove_file(&self, path: &Path) -> Result<()>;
fn remove_dir_all(&self, path: &Path) -> Result<()>;
fn create_dir_all(&self, path: &Path) -> Result<()>;
fn permissions(&self, path: &Path) -> Result<Permissions>;
fn set_permissions(
&self,
path: &Path,
permissions: Permissions,
) -> Result<()>;
}Expand description
Filesystem seam used by atomic replacement and Windows quarantine.
Required Methods§
Sourcefn remove_file(&self, path: &Path) -> Result<()>
fn remove_file(&self, path: &Path) -> Result<()>
Sourcefn remove_dir_all(&self, path: &Path) -> Result<()>
fn remove_dir_all(&self, path: &Path) -> Result<()>
Sourcefn create_dir_all(&self, path: &Path) -> Result<()>
fn create_dir_all(&self, path: &Path) -> Result<()>
Sourcefn permissions(&self, path: &Path) -> Result<Permissions>
fn permissions(&self, path: &Path) -> Result<Permissions>
Sourcefn set_permissions(&self, path: &Path, permissions: Permissions) -> Result<()>
fn set_permissions(&self, path: &Path, permissions: Permissions) -> Result<()>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".