Struct virtual_fs::TraceFileSystem
source · pub struct TraceFileSystem<F>(pub F);
Expand description
A FileSystem
wrapper that will automatically log all operations at the
trace
level.
To see these logs, you will typically need to set the $RUST_LOG
environment variable to virtual_fs::trace_fs=trace
.
Tuple Fields§
§0: F
Implementations§
Trait Implementations§
source§impl<F: Clone> Clone for TraceFileSystem<F>
impl<F: Clone> Clone for TraceFileSystem<F>
source§fn clone(&self) -> TraceFileSystem<F>
fn clone(&self) -> TraceFileSystem<F>
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<F: Debug> Debug for TraceFileSystem<F>
impl<F: Debug> Debug for TraceFileSystem<F>
source§impl<F> FileOpener for TraceFileSystem<F>where
F: FileSystem,
impl<F> FileOpener for TraceFileSystem<F>where
F: FileSystem,
fn open( &self, path: &Path, conf: &OpenOptionsConfig, ) -> Result<Box<dyn VirtualFile + Send + Sync + 'static>>
source§impl<F> FileSystem for TraceFileSystem<F>where
F: FileSystem,
impl<F> FileSystem for TraceFileSystem<F>where
F: FileSystem,
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<'_>
source§impl<F: PartialEq> PartialEq for TraceFileSystem<F>
impl<F: PartialEq> PartialEq for TraceFileSystem<F>
source§fn eq(&self, other: &TraceFileSystem<F>) -> bool
fn eq(&self, other: &TraceFileSystem<F>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<F: Eq> Eq for TraceFileSystem<F>
impl<F> StructuralPartialEq for TraceFileSystem<F>
Auto Trait Implementations§
impl<F> Freeze for TraceFileSystem<F>where
F: Freeze,
impl<F> RefUnwindSafe for TraceFileSystem<F>where
F: RefUnwindSafe,
impl<F> Send for TraceFileSystem<F>where
F: Send,
impl<F> Sync for TraceFileSystem<F>where
F: Sync,
impl<F> Unpin for TraceFileSystem<F>where
F: Unpin,
impl<F> UnwindSafe for TraceFileSystem<F>where
F: UnwindSafe,
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
)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.