Struct virtual_fs::tmp_fs::TmpFileSystem
source · pub struct TmpFileSystem {
fs: FileSystem,
}
Fields§
§fs: FileSystem
Implementations§
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 mount_directory_entries(
&self,
target_path: &Path,
other: &Arc<dyn FileSystem + Send + Sync>,
source_path: &Path,
) -> Result<()>
pub fn mount_directory_entries( &self, target_path: &Path, other: &Arc<dyn FileSystem + Send + Sync>, source_path: &Path, ) -> Result<()>
pub fn mount( &self, src_path: PathBuf, other: &Arc<dyn FileSystem + Send + Sync>, dst_path: PathBuf, ) -> Result<()>
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.
Trait Implementations§
source§impl Clone for TmpFileSystem
impl Clone for TmpFileSystem
source§fn clone(&self) -> TmpFileSystem
fn clone(&self) -> TmpFileSystem
Returns a copy 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 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<'_>
fn mount( &self, name: String, path: &Path, fs: Box<dyn FileSystem + Send + Sync>, ) -> Result<()>
Auto Trait Implementations§
impl Freeze for TmpFileSystem
impl RefUnwindSafe for TmpFileSystem
impl Send for TmpFileSystem
impl Sync for TmpFileSystem
impl Unpin 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)