Expand description
Search module: types, cancellation, and the in-process search registry.
§Sub-modules
cancel—CancellationToken(atomic flag wrapper).
§Types exposed at module level
EntryRef— thin DTO for a single search result row.SearchPage— one streamed page of search results.SearchRegistry— tracks in-flight searches byrequest_id.SearchRegistryHandle—Arc<RwLock<SearchRegistry>>for Tauri state.
§OCP
EntryRefis a thin DTO — extending with metadata fields is non-breaking.SearchRegistryoperates onrequest_idstrings; the registry is independent of search mode, so future modes (history search, tag search) register tokens the same way.
Modules§
- cancel
- Lightweight cancellation token for long-running search operations.
Structs§
- Entry
Ref - A single search result entry.
- Search
Page - One page of search results emitted as a
search:pageevent. - Search
Registry - In-memory registry of in-flight prefix searches.
- Search
Registry Handle Arc<RwLock<SearchRegistry>>used as Tauri managed state.