pub trait DiskWatcherPathMatcher:
Send
+ Sync
+ NonLocalValue
+ ValueDebug {
// Required method
fn match_path(&self, path: &Path) -> bool;
}Expand description
Matches absolute paths reported by the filesystem watcher. See
DiskWatcherConfig::extended_batch_delay_matcher.
Required Methods§
Sourcefn match_path(&self, path: &Path) -> bool
fn match_path(&self, path: &Path) -> bool
Called on the watcher thread once per path of every incoming event, so this should be cheap and must not block.
Trait Implementations§
impl Dynamic<Box<dyn DiskWatcherPathMatcher>> for Box<dyn DiskWatcherPathMatcher>
impl Dynamic<Box<dyn ValueDebug>> for Box<dyn DiskWatcherPathMatcher>
Available on debug-assertions enabled only.
Source§impl TraitVtablePrototype for Box<dyn DiskWatcherPathMatcher>
impl TraitVtablePrototype for Box<dyn DiskWatcherPathMatcher>
impl Upcast<Box<dyn DiskWatcherPathMatcher>> for Box<dyn DiskWatcherPathMatcher>
impl Upcast<Box<dyn ValueDebug>> for Box<dyn DiskWatcherPathMatcher>
Available on debug-assertions enabled only.
impl UpcastStrict<Box<dyn ValueDebug>> for Box<dyn DiskWatcherPathMatcher>
Available on debug-assertions enabled only.
Source§impl VcValueTrait for Box<dyn DiskWatcherPathMatcher>
impl VcValueTrait for Box<dyn DiskWatcherPathMatcher>
Source§const IMPL_VTABLES: &'static VTableRegistry<Self::ValueTrait>
const IMPL_VTABLES: &'static VTableRegistry<Self::ValueTrait>
The per-trait vtable registry, populated by [crate::value_type::register_all_trait_methods] Read more
type ValueTrait = dyn DiskWatcherPathMatcher
Source§fn get_trait_type_id() -> TraitTypeId
fn get_trait_type_id() -> TraitTypeId
Returns the type id of the trait object.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".