Track watched paths in ImfsFetcher, exposed via ImfsDebug interface

This commit is contained in:
Lucien Greathouse 2019-09-25 10:45:14 -07:00
parent c140823bea
commit b4a8dec68c
3 changed files with 41 additions and 3 deletions

View file

@ -29,4 +29,9 @@ pub trait ImfsFetcher {
fn watch(&mut self, path: &Path);
fn unwatch(&mut self, path: &Path);
fn receiver(&self) -> Receiver<ImfsEvent>;
/// A method intended for debugging what paths the fetcher is watching.
fn watched_paths(&self) -> Vec<&Path> {
Vec::new()
}
}