pub struct OsFileSystem;Implementations§
Source§impl OsFileSystem
impl OsFileSystem
Trait Implementations§
Source§impl Clone for OsFileSystem
impl Clone for OsFileSystem
Source§impl Debug for OsFileSystem
impl Debug for OsFileSystem
Source§impl Default for OsFileSystem
impl Default for OsFileSystem
Source§impl FileSystem for OsFileSystem
impl FileSystem for OsFileSystem
Source§fn open_with(
&self,
path: &Path,
options: &OpenOptions,
) -> Result<Box<dyn File + Send + Sync>>
fn open_with( &self, path: &Path, options: &OpenOptions, ) -> Result<Box<dyn File + Send + Sync>>
Opens a file with the given options.
fn canonicalize(&self, path: &Path) -> Result<PathBuf>
fn read_link(&self, path: &Path) -> Result<PathBuf>
fn copy(&self, from: &Path, to: &Path) -> Result<u64>
fn create_dir(&self, path: &Path) -> Result<()>
fn create_dir_all(&self, path: &Path) -> Result<()>
Source§fn create_dir_with(&self, path: &Path, builder: &DirBuilder) -> Result<()>
fn create_dir_with(&self, path: &Path, builder: &DirBuilder) -> Result<()>
Creates a directory using the given builder.
fn hard_link(&self, original: &Path, link: &Path) -> Result<()>
fn metadata(&self, path: &Path) -> Result<Box<dyn Metadata + Send + Sync>>
fn read(&self, path: &Path) -> Result<Vec<u8>>
fn read_dir(&self, path: &Path) -> Result<Box<dyn ReadDir + Send + Sync>>
fn read_to_string(&self, path: &Path) -> Result<String>
fn remove_dir(&self, path: &Path) -> Result<()>
fn remove_dir_all(&self, path: &Path) -> Result<()>
fn remove_file(&self, path: &Path) -> Result<()>
fn rename(&self, from: &Path, to: &Path) -> Result<()>
fn set_permissions(&self, path: &Path, perm: &Permissions) -> Result<()>
Source§fn set_times(&self, path: &Path, times: &FileTimes) -> Result<()>
fn set_times(&self, path: &Path, times: &FileTimes) -> Result<()>
Changes the timestamps of the file or directory at the given path.
fn symlink(&self, original: &Path, link: &Path) -> Result<()>
fn symlink_metadata( &self, path: &Path, ) -> Result<Box<dyn Metadata + Send + Sync>>
fn write(&self, path: &Path, contents: &[u8]) -> Result<()>
Auto Trait Implementations§
impl Freeze for OsFileSystem
impl RefUnwindSafe for OsFileSystem
impl Send for OsFileSystem
impl Sync for OsFileSystem
impl Unpin for OsFileSystem
impl UnsafeUnpin for OsFileSystem
impl UnwindSafe for OsFileSystem
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