pub trait Watcher: Send {
    // Required method
    fn handle(&self, event: WatchedEvent);
}
Expand description

The interface for handling events when a Watch triggers.

Required Methods§

source

fn handle(&self, event: WatchedEvent)

Receive the triggered event.

Implementors§

source§

impl<F> Watcher for F
where F: Fn(WatchedEvent) + Send,