pub struct PhysicalFS { /* private fields */ }
Expand description
A VFS that points to a directory and uses it as the root of its file hierarchy.
It IS allowed to have symlinks in it! They’re surprisingly difficult to get rid of.
Implementations§
Trait Implementations§
Source§impl Clone for PhysicalFS
impl Clone for PhysicalFS
Source§fn clone(&self) -> PhysicalFS
fn clone(&self) -> PhysicalFS
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 PhysicalFS
impl Debug for PhysicalFS
Source§impl VFS for PhysicalFS
impl VFS for PhysicalFS
Source§fn open_options(
&self,
path: &Path,
open_options: OpenOptions,
) -> Result<Box<dyn VFile>>
fn open_options( &self, path: &Path, open_options: OpenOptions, ) -> Result<Box<dyn VFile>>
Open the file at this path with the given options
Source§fn read_dir(
&self,
path: &Path,
) -> Result<Box<dyn Iterator<Item = Result<PathBuf>>>>
fn read_dir( &self, path: &Path, ) -> Result<Box<dyn Iterator<Item = Result<PathBuf>>>>
Retrieve the path entries in this path
Source§fn to_path_buf(&self) -> Option<PathBuf>
fn to_path_buf(&self) -> Option<PathBuf>
Retrieve the actual location of the VFS root, if available.
Auto Trait Implementations§
impl Freeze for PhysicalFS
impl RefUnwindSafe for PhysicalFS
impl Send for PhysicalFS
impl Sync for PhysicalFS
impl Unpin for PhysicalFS
impl UnwindSafe for PhysicalFS
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