[−][src]Struct filesystem::OsFileSystem
An implementation of FileSystem
that interacts with the actual operating system's file system.
This is primarily a wrapper for fs
methods.
Methods
impl OsFileSystem
[src]
Trait Implementations
impl FileSystem for OsFileSystem
[src]
type DirEntry = DirEntry
type ReadDir = ReadDir
fn current_dir(&self) -> Result<PathBuf>
[src]
fn set_current_dir<P: AsRef<Path>>(&self, path: P) -> Result<()>
[src]
fn is_dir<P: AsRef<Path>>(&self, path: P) -> bool
[src]
fn is_file<P: AsRef<Path>>(&self, path: P) -> bool
[src]
fn create_dir<P: AsRef<Path>>(&self, path: P) -> Result<()>
[src]
fn create_dir_all<P: AsRef<Path>>(&self, path: P) -> Result<()>
[src]
fn remove_dir<P: AsRef<Path>>(&self, path: P) -> Result<()>
[src]
fn remove_dir_all<P: AsRef<Path>>(&self, path: P) -> Result<()>
[src]
fn read_dir<P: AsRef<Path>>(&self, path: P) -> Result<Self::ReadDir>
[src]
fn write_file<P, B>(&self, path: P, buf: B) -> Result<()> where
P: AsRef<Path>,
B: AsRef<[u8]>,
[src]
P: AsRef<Path>,
B: AsRef<[u8]>,
fn overwrite_file<P, B>(&self, path: P, buf: B) -> Result<()> where
P: AsRef<Path>,
B: AsRef<[u8]>,
[src]
P: AsRef<Path>,
B: AsRef<[u8]>,
fn read_file<P: AsRef<Path>>(&self, path: P) -> Result<Vec<u8>>
[src]
fn read_file_into<P, B>(&self, path: P, buf: B) -> Result<usize> where
P: AsRef<Path>,
B: AsMut<Vec<u8>>,
[src]
P: AsRef<Path>,
B: AsMut<Vec<u8>>,
fn read_file_to_string<P: AsRef<Path>>(&self, path: P) -> Result<String>
[src]
fn create_file<P, B>(&self, path: P, buf: B) -> Result<()> where
P: AsRef<Path>,
B: AsRef<[u8]>,
[src]
P: AsRef<Path>,
B: AsRef<[u8]>,
fn remove_file<P: AsRef<Path>>(&self, path: P) -> Result<()>
[src]
fn copy_file<P, Q>(&self, from: P, to: Q) -> Result<()> where
P: AsRef<Path>,
Q: AsRef<Path>,
[src]
P: AsRef<Path>,
Q: AsRef<Path>,
fn rename<P, Q>(&self, from: P, to: Q) -> Result<()> where
P: AsRef<Path>,
Q: AsRef<Path>,
[src]
P: AsRef<Path>,
Q: AsRef<Path>,
fn readonly<P: AsRef<Path>>(&self, path: P) -> Result<bool>
[src]
fn set_readonly<P: AsRef<Path>>(&self, path: P, readonly: bool) -> Result<()>
[src]
fn len<P: AsRef<Path>>(&self, path: P) -> u64
[src]
impl UnixFileSystem for OsFileSystem
[src]
fn mode<P: AsRef<Path>>(&self, path: P) -> Result<u32>
[src]
fn set_mode<P: AsRef<Path>>(&self, path: P, mode: u32) -> Result<()>
[src]
impl TempFileSystem for OsFileSystem
[src]
impl Default for OsFileSystem
[src]
fn default() -> OsFileSystem
[src]
impl Clone for OsFileSystem
[src]
fn clone(&self) -> OsFileSystem
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for OsFileSystem
[src]
Auto Trait Implementations
impl Send for OsFileSystem
impl Sync for OsFileSystem
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,