pub struct RealDiskInterface {}
Implementations§
Source§impl RealDiskInterface
impl RealDiskInterface
Sourcepub fn allow_stat_cache(&self, allow: bool)
pub fn allow_stat_cache(&self, allow: bool)
Whether stat information can be cached. Only has an effect on Windows.
Trait Implementations§
Source§impl DiskInterface for RealDiskInterface
impl DiskInterface for RealDiskInterface
Source§fn make_dir(&self, path: &Path) -> Result<(), Error>
fn make_dir(&self, path: &Path) -> Result<(), Error>
Create a directory, returning false on failure.
Source§fn make_dirs(&self, path: &Path) -> Result<(), Error>
fn make_dirs(&self, path: &Path) -> Result<(), Error>
Create all the parent directories for path; like mkdir -p
basename path
.Source§fn stat(&self, path: &Path) -> Result<TimeStamp, String>
fn stat(&self, path: &Path) -> Result<TimeStamp, String>
stat() a file, returning the mtime, or 0 if missing and -1 on
other errors.
Source§impl FileReader for RealDiskInterface
impl FileReader for RealDiskInterface
Auto Trait Implementations§
impl Freeze for RealDiskInterface
impl RefUnwindSafe for RealDiskInterface
impl Send for RealDiskInterface
impl Sync for RealDiskInterface
impl Unpin for RealDiskInterface
impl UnwindSafe for RealDiskInterface
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