pub trait EventHandler {
// Provided methods
fn on_change(&self, _changed_file: String) -> Result<()> { ... }
fn on_delete(&self, _deleted_file: String) -> Result<()> { ... }
}Expand description
EventHandler is a trait for handling individual file system events.
It provides methods to handle changes and deletions of files.