Skip to main content

Module search

Module search 

Source
Expand description

Search module: types, cancellation, and the in-process search registry.

§Sub-modules

  • cancelCancellationToken (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 by request_id.
  • SearchRegistryHandleArc<RwLock<SearchRegistry>> for Tauri state.

§OCP

  • EntryRef is a thin DTO — extending with metadata fields is non-breaking.
  • SearchRegistry operates on request_id strings; 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§

EntryRef
A single search result entry.
SearchPage
One page of search results emitted as a search:page event.
SearchRegistry
In-memory registry of in-flight prefix searches.
SearchRegistryHandle
Arc<RwLock<SearchRegistry>> used as Tauri managed state.