Struct virtual_fs::union_fs::UnionFileSystem
source · pub struct UnionFileSystem {
pub mounts: Vec<MountPoint>,
}
Expand description
Allows different filesystems of different types to be mounted at various mount points
Fields§
§mounts: Vec<MountPoint>
Implementations§
source§impl UnionFileSystem
impl UnionFileSystem
Trait Implementations§
source§impl Clone for UnionFileSystem
impl Clone for UnionFileSystem
source§fn clone(&self) -> UnionFileSystem
fn clone(&self) -> UnionFileSystem
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§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 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<'_>
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