pub struct Vfs<U = ()>(_);
Implementations§
source§impl<U> Vfs<U>
impl<U> Vfs<U>
sourcepub fn file_saved(&self, path: &Path) -> Result<(), Error>
pub fn file_saved(&self, path: &Path) -> Result<(), Error>
Indicate that the current file as known to the VFS has been written to disk.
sourcepub fn flush_file(&self, path: &Path) -> Result<(), Error>
pub fn flush_file(&self, path: &Path) -> Result<(), Error>
Removes a file from the VFS. Does not check if the file is synced with the disk. Does not check if the file exists.
pub fn file_is_synced(&self, path: &Path) -> Result<bool, Error>
sourcepub fn on_changes(&self, changes: &[Change]) -> Result<(), Error>
pub fn on_changes(&self, changes: &[Change]) -> Result<(), Error>
Record a set of changes to the VFS.
sourcepub fn get_cached_files(&self) -> HashMap<PathBuf, String>
pub fn get_cached_files(&self) -> HashMap<PathBuf, String>
Return all files in the VFS.
pub fn get_changes(&self) -> HashMap<PathBuf, String>
sourcepub fn has_changes(&self) -> bool
pub fn has_changes(&self) -> bool
Returns true if the VFS contains any changed files.