Struct memofs::InMemoryFs [−][src]
pub struct InMemoryFs { /* fields omitted */ }Expand description
In-memory filesystem that can be used as a VFS backend.
Internally reference counted to enable giving a copy to
Vfs and keeping the original to mutate the filesystem’s
state with.
Implementations
pub fn load_snapshot<P: Into<PathBuf>>(
&mut self,
path: P,
snapshot: VfsSnapshot
) -> Result<()>
pub fn load_snapshot<P: Into<PathBuf>>(
&mut self,
path: P,
snapshot: VfsSnapshot
) -> Result<()>
Load a VfsSnapshot into a subtree of the
in-memory filesystem.
This function will return an error if the operations required to apply the snapshot result in errors, like trying to create a file inside a file.
Raises a filesystem change event.
If this InMemoryFs is being used as the backend of a
Vfs, then any listeners be notified of this event.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for InMemoryFs
impl Send for InMemoryFs
impl Sync for InMemoryFs
impl Unpin for InMemoryFs
impl UnwindSafe for InMemoryFs
Blanket Implementations
Mutably borrows from an owned value. Read more