Skip to main content

ChangeHandler

Type Alias ChangeHandler 

Source
pub type ChangeHandler = Arc<dyn Fn(&[PathBuf]) + Send + Sync>;
Expand description

Callback invoked on a debounced file-change event.

paths is the deduplicated set of paths reported as changed within the debounce window. The callback runs on a background thread; keep it non-blocking or push work onto a channel.

Aliased Type§

pub struct ChangeHandler { /* private fields */ }