Type Alias EventHandler

Source
pub type EventHandler = dyn Fn(WatchEvent);
Expand description

A callback function for watch events.

Implement this to customize how events are handled during watching.