pub struct StdFileSystem;Expand description
Production FileSystem backed by std::fs.
Implementations§
Source§impl StdFileSystem
impl StdFileSystem
Trait Implementations§
Source§impl Clone for StdFileSystem
impl Clone for StdFileSystem
Source§fn clone(&self) -> StdFileSystem
fn clone(&self) -> StdFileSystem
Returns a duplicate 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 StdFileSystem
impl Debug for StdFileSystem
Source§impl Default for StdFileSystem
impl Default for StdFileSystem
Source§fn default() -> StdFileSystem
fn default() -> StdFileSystem
Returns the “default value” for a type. Read more
Source§impl FileSystem for StdFileSystem
impl FileSystem for StdFileSystem
Source§fn create_dir_all(&self, path: &Path) -> Result<()>
fn create_dir_all(&self, path: &Path) -> Result<()>
Create a directory and all missing parents. Idempotent: succeeds
if the directory already exists.
Source§fn remove_dir_all(&self, path: &Path) -> Result<()>
fn remove_dir_all(&self, path: &Path) -> Result<()>
Remove a directory and all of its contents recursively.
ErrorKind::NotFound if the path does not exist.Source§fn try_exists(&self, path: &Path) -> Result<bool>
fn try_exists(&self, path: &Path) -> Result<bool>
Returns
Ok(true) if the path exists, Ok(false) if it does
not, and a non-NotFound error for any other condition
(for example permission denied).Source§fn open_read(&self, path: &Path) -> Result<Box<dyn FileRead>>
fn open_read(&self, path: &Path) -> Result<Box<dyn FileRead>>
Open an existing file for reading.
ErrorKind::NotFound if the
file does not exist.Source§fn open_write(&self, path: &Path) -> Result<Box<dyn FileWrite>>
fn open_write(&self, path: &Path) -> Result<Box<dyn FileWrite>>
Open a file for writing, creating it if absent and truncating
it if present. Missing parent directories produce
ErrorKind::NotFound.impl Copy for StdFileSystem
Auto Trait Implementations§
impl Freeze for StdFileSystem
impl RefUnwindSafe for StdFileSystem
impl Send for StdFileSystem
impl Sync for StdFileSystem
impl Unpin for StdFileSystem
impl UnsafeUnpin for StdFileSystem
impl UnwindSafe for StdFileSystem
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