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§
Sourcefn should_watch(&self, path: &Path) -> bool
fn should_watch(&self, path: &Path) -> bool
Returns true if the file should be watched
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".