pub trait Watcher: Send {
// Required method
fn handle(&self, event: WatchedEvent);
}Expand description
The interface for handling events when a Watch triggers.
Required Methods§
Sourcefn handle(&self, event: WatchedEvent)
fn handle(&self, event: WatchedEvent)
Receive the triggered event.