Struct memofs::VfsLock [−][src]
pub struct VfsLock<'a> { /* fields omitted */ }Expand description
Implementations
Turns automatic file watching on or off. Enabled by default.
Turning off file watching may be useful for single-use cases, especially on platforms like macOS where registering file watches has significant performance cost.
Read a file from the VFS, or the underlying backend if it isn’t resident.
Roughly equivalent to std::fs::read.
Write a file to the VFS and the underlying backend.
Roughly equivalent to std::fs::write.
Read all of the children of a directory.
Roughly equivalent to std::fs::read_dir.
Remove a file.
Roughly equivalent to std::fs::remove_file.
Remove a directory and all of its descendants.
Roughly equivalent to std::fs::remove_dir_all.
Query metadata about the given path.
Roughly equivalent to std::fs::metadata.
Retrieve a handle to the event receiver for this Vfs.
Commit an event to this Vfs.