pub struct UnionFileSystem {
pub mounts: DashMap<PathBuf, MountPoint>,
}
Expand description
Allows different filesystems of different types to be mounted at various mount points
Fields§
§mounts: DashMap<PathBuf, MountPoint>
Implementations§
Trait Implementations§
Source§impl Debug for UnionFileSystem
impl Debug for UnionFileSystem
Source§impl Default for UnionFileSystem
impl Default for UnionFileSystem
Source§fn default() -> UnionFileSystem
fn default() -> UnionFileSystem
Returns the “default value” for a type. Read more
Source§impl FileOpener for UnionFileSystem
impl FileOpener for UnionFileSystem
fn open( &self, path: &Path, conf: &OpenOptionsConfig, ) -> Result<Box<dyn VirtualFile + Send + Sync>>
Source§impl FileSystem for UnionFileSystem
impl FileSystem for UnionFileSystem
fn readlink(&self, path: &Path) -> Result<PathBuf>
fn read_dir(&self, path: &Path) -> Result<ReadDir>
fn create_dir(&self, path: &Path) -> Result<()>
fn remove_dir(&self, path: &Path) -> Result<()>
fn rename<'a>( &'a self, from: &'a Path, to: &'a Path, ) -> BoxFuture<'a, Result<()>>
fn metadata(&self, path: &Path) -> Result<Metadata>
Source§fn symlink_metadata(&self, path: &Path) -> Result<Metadata>
fn symlink_metadata(&self, path: &Path) -> Result<Metadata>
This method gets metadata without following symlinks in the path.
Currently identical to
metadata
because symlinks aren’t implemented
yet.fn remove_file(&self, path: &Path) -> Result<()>
fn new_open_options(&self) -> OpenOptions<'_>
fn mount( &self, name: String, path: &Path, fs: Box<dyn FileSystem + Send + Sync>, ) -> Result<()>
Auto Trait Implementations§
impl Freeze for UnionFileSystem
impl !RefUnwindSafe for UnionFileSystem
impl Send for UnionFileSystem
impl Sync for UnionFileSystem
impl Unpin for UnionFileSystem
impl !UnwindSafe for UnionFileSystem
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more