Skip to main content

Module watcher

Module watcher 

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

Modules§

handlers
Handler implementations for the unified watcher.

Structs§

Debouncer
Debounces file change events by path.
HotReloadWatcher
Watches for external index changes and hot-reloads them.
IndexStats
Statistics about the watched index.
PathRegistry
Registry for watched paths with interning.
UnifiedWatcher
Unified file watcher with pluggable handlers.
UnifiedWatcherBuilder
Builder for constructing a UnifiedWatcher.

Enums§

WatchAction
Actions returned by handlers for the UnifiedWatcher to execute.
WatchError
Errors from watcher operations.

Traits§

WatchHandler
Trait for handlers that process file change events.