Skip to main content

Module file_index

Module file_index 

Source

Structs§

CancelToken
Cancel guard for a backgrounded scan or watch. Drop to flip the shared atomic that producers poll between batches / events.
FileCandidate

Enums§

FileIndexChange
ScanProgress
Streaming-scan progress. Producers emit Batch repeatedly then Finished once when the walk completes.
WatchProgress
Watcher progress. Changes carries a delta batch; Rebuild is a rescan signal (.gitignore changed or notify event we can’t classify).

Functions§

candidate_basename
collect_candidates
Synchronous walk that returns every candidate under walk_root. Used by inline subtree refreshes triggered by watcher events.
start_change_watch
Spawn a recursive watch rooted at root that reports ONE message per burst of changes the tree saw.
start_scan
Spawn a streaming filesystem scan rooted at root. Returns a receiver of ScanProgress batches (Batch until the walker finishes, then one terminal Finished) and a cancel handle. Dropping the cancel handle aborts the walker.
start_watch
Spawn a recursive filesystem watch rooted at root. Returns a receiver of WatchProgress events and a cancel handle. Dropping the cancel handle stops the watcher.