Expand description
Unified file watcher system for automatic re-indexing.
This module provides a single file watcher that routes events to pluggable handlers for code files, documents, and configuration.
§Architecture
UnifiedWatcher
- Single notify::RecommendedWatcher
- Shared PathRegistry (interned paths)
- Shared Debouncer
- Routes events to handlers
|
+---------+---------+
| | |
CodeHandler DocHandler ConfigHandlerModules§
- handlers
- Handler implementations for the unified watcher.
Structs§
- Debouncer
- Debounces file change events by path.
- HotReload
Watcher - Watches for external index changes and hot-reloads them.
- Index
Stats - Statistics about the watched index.
- Path
Registry - Registry for watched paths with interning.
- Unified
Watcher - Unified file watcher with pluggable handlers.
- Unified
Watcher Builder - Builder for constructing a UnifiedWatcher.
Enums§
- Watch
Action - Actions returned by handlers for the UnifiedWatcher to execute.
- Watch
Error - Errors from watcher operations.
Traits§
- Watch
Handler - Trait for handlers that process file change events.