Skip to main content

FileFilter

Trait FileFilter 

Source
pub trait FileFilter: Send + Sync {
    // Required method
    fn should_watch(&self, path: &Path) -> bool;
}
Expand description

Trait for filtering which files should be watched

Required Methods§

Source

fn should_watch(&self, path: &Path) -> bool

Returns true if the file should be watched

Implementors§

Source§

impl<F> FileFilter for ClosureFilter<F>
where F: Fn(&Path) -> bool + Send + Sync,