Expand description
Native watch backend via the notify crate (inotify on Linux, FSEvents
on macOS, ReadDirectoryChangesW on Windows), demoted to a dirty-set
hint source: every event becomes Hint::Dirty(path) and every
loss signal — overflow, rescan flag, backend error — degrades to
Hint::Rescan. No backend behavior is client-visible; the engine
verifies everything against the filesystem before emitting.
Structs§
- Watch
Backend - Keeps the native watch alive; dropping it unwatches.
- Watches
- The native watches a root holds, and the reconciler’s handle on them.
Functions§
- is_
read_ only_ event - Whether an event reports only that something was read.
- per_
dir_ watching_ pays - Whether per-directory arming is worth it for a filtered root.
- watch
- Arm a native watch on
rootfeedinghints. Must be called before the engine’s initial enumeration so nothing slips between scan and arm. Withper_dir(seeper_dir_watching_pays) onlyrootis armed here and the reconciler arms the rest as it enumerates, so excluded subtrees never cost a descriptor. - watcher
- Build the platform watcher every blit watch goes through.