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<'_>
fn mount( &self, name: String, path: &Path, fs: Box<dyn FileSystem + Send + Sync>, ) -> Result<()>
Source§impl<F: PartialEq> PartialEq for TraceFileSystem<F>
impl<F: PartialEq> PartialEq for TraceFileSystem<F>
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
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§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.