Skip to main content

Module backend

Module backend 

Source
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§

WatchBackend
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 root feeding hints. Must be called before the engine’s initial enumeration so nothing slips between scan and arm. With per_dir (see per_dir_watching_pays) only root is 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.