Struct virtual_fs::empty_fs::EmptyFileSystem
source · pub struct EmptyFileSystem {}
Trait Implementations§
source§impl Debug for EmptyFileSystem
impl Debug for EmptyFileSystem
source§impl Default for EmptyFileSystem
impl Default for EmptyFileSystem
source§fn default() -> EmptyFileSystem
fn default() -> EmptyFileSystem
Returns the “default value” for a type. Read more
source§impl FileOpener for EmptyFileSystem
impl FileOpener for EmptyFileSystem
fn open( &self, path: &Path, conf: &OpenOptionsConfig, ) -> Result<Box<dyn VirtualFile + Send + Sync + 'static>>
source§impl FileSystem for EmptyFileSystem
impl FileSystem for EmptyFileSystem
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 EmptyFileSystem
impl RefUnwindSafe for EmptyFileSystem
impl Send for EmptyFileSystem
impl Sync for EmptyFileSystem
impl Unpin for EmptyFileSystem
impl UnwindSafe for EmptyFileSystem
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