Trait memofs::VfsBackend[][src]

pub trait VfsBackend: Sealed + Send + 'static {
    fn read(&mut self, path: &Path) -> Result<Vec<u8>>;
fn write(&mut self, path: &Path, data: &[u8]) -> Result<()>;
fn read_dir(&mut self, path: &Path) -> Result<ReadDir>;
fn metadata(&mut self, path: &Path) -> Result<Metadata>;
fn remove_file(&mut self, path: &Path) -> Result<()>;
fn remove_dir_all(&mut self, path: &Path) -> Result<()>;
fn event_receiver(&self) -> Receiver<VfsEvent>;
fn watch(&mut self, path: &Path) -> Result<()>;
fn unwatch(&mut self, path: &Path) -> Result<()>; }
Expand description

Backend that can be used to create a Vfs.

This trait is sealed and cannot not be implemented outside this crate.

Required methods

Implementors