pub struct TmpFileSystem {
fs: FileSystem,
}Fields§
§fs: FileSystemImplementations§
Source§impl TmpFileSystem
impl TmpFileSystem
pub fn new() -> Self
pub fn set_memory_limiter(&self, limiter: DynFsMemoryLimiter)
pub fn new_open_options_ext(&self) -> &FileSystem
pub fn union(&self, other: &Arc<dyn FileSystem + Send + Sync>)
Sourcepub fn canonicalize_unchecked(&self, path: &Path) -> Result<PathBuf>
pub fn canonicalize_unchecked(&self, path: &Path) -> Result<PathBuf>
Canonicalize a path without validating that it actually exists.
pub fn create_symlink(&self, source: &Path, target: &Path) -> Result<()>
Trait Implementations§
Source§impl Clone for TmpFileSystem
impl Clone for TmpFileSystem
Source§fn clone(&self) -> TmpFileSystem
fn clone(&self) -> TmpFileSystem
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 TmpFileSystem
impl Debug for TmpFileSystem
Source§impl Default for TmpFileSystem
impl Default for TmpFileSystem
Source§fn default() -> TmpFileSystem
fn default() -> TmpFileSystem
Returns the “default value” for a type. Read more
Source§impl FileSystem for TmpFileSystem
impl FileSystem for TmpFileSystem
fn readlink(&self, path: &Path) -> Result<PathBuf>
fn read_dir(&self, path: &Path) -> Result<ReadDir>
fn create_dir(&self, path: &Path) -> Result<()>
fn create_symlink(&self, source: &Path, target: &Path) -> Result<()>
fn hard_link(&self, source: &Path, target: &Path) -> Result<()>
fn remove_dir(&self, path: &Path) -> Result<()>
fn rename<'a>( &'a self, from: &'a Path, to: &'a Path, ) -> BoxFuture<'a, Result<()>>
fn metadata(&self, path: &Path) -> Result<Metadata>
Source§fn symlink_metadata(&self, path: &Path) -> Result<Metadata>
fn symlink_metadata(&self, path: &Path) -> Result<Metadata>
This method gets metadata without following symlinks in the path.
Currently identical to
metadata because symlinks aren’t implemented
yet.fn remove_file(&self, path: &Path) -> Result<()>
fn new_open_options(&self) -> OpenOptions<'_>
Auto Trait Implementations§
impl Freeze for TmpFileSystem
impl RefUnwindSafe for TmpFileSystem
impl Send for TmpFileSystem
impl Sync for TmpFileSystem
impl Unpin for TmpFileSystem
impl UnsafeUnpin for TmpFileSystem
impl UnwindSafe for TmpFileSystem
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