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: FImplementations§
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 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>
fn remove_file(&self, path: &Path) -> Result<()>
fn new_open_options(&self) -> OpenOptions<'_>
source§impl<F: PartialEq> PartialEq<TraceFileSystem<F>> for TraceFileSystem<F>
 
impl<F: PartialEq> PartialEq<TraceFileSystem<F>> 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> StructuralEq for TraceFileSystem<F>
impl<F> StructuralPartialEq for TraceFileSystem<F>
Auto Trait Implementations§
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<Q, K> Equivalent<K> for Qwhere
    Q: Eq + ?Sized,
    K: Borrow<Q> + ?Sized,
 
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
 
fn equivalent(&self, key: &K) -> bool
Compare self to 
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
    Q: Eq + ?Sized,
    K: Borrow<Q> + ?Sized,
 
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
 
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
    Q: Eq + ?Sized,
    K: Borrow<Q> + ?Sized,
 
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
 
fn equivalent(&self, key: &K) -> bool
Compare self to 
key and return true if they are equal.