pub struct FileSystem { /* private fields */ }
Expand description
The in-memory file system!
It’s a thin wrapper around [FileSystemInner
]. This FileSystem
type can be cloned, it’s a light copy of the FileSystemInner
(which is behind a Arc
+ RwLock
.
Trait Implementations§
Source§impl Clone for FileSystem
impl Clone for FileSystem
Source§fn clone(&self) -> FileSystem
fn clone(&self) -> FileSystem
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 FileSystem
impl Debug for FileSystem
Source§impl Default for FileSystem
impl Default for FileSystem
Source§fn default() -> FileSystem
fn default() -> FileSystem
Returns the “default value” for a type. Read more
Source§impl FileSystem for FileSystem
impl FileSystem for FileSystem
fn read_dir(&self, path: &Path) -> Result<ReadDir>
fn create_dir(&self, path: &Path) -> Result<()>
fn remove_dir(&self, path: &Path) -> Result<()>
fn rename(&self, from: &Path, to: &Path) -> Result<()>
fn metadata(&self, path: &Path) -> Result<Metadata>
fn remove_file(&self, path: &Path) -> Result<()>
fn new_open_options(&self) -> OpenOptions
Auto Trait Implementations§
impl Freeze for FileSystem
impl RefUnwindSafe for FileSystem
impl Send for FileSystem
impl Sync for FileSystem
impl Unpin for FileSystem
impl UnwindSafe for FileSystem
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