Skip to main content

SearchStream

Type Alias SearchStream 

Source
pub type SearchStream<T> = BoxStream<Result<T>>;
Expand description

The results of a search that the server runs through several sources (plugins): one item per answer of a source, as it arrives. An item is an error for results that could not be read (the stream goes on) or for a broken connection (the stream ends). The stream ends when every source answered; drop it to stop the search.

Aliased Typeยง

#[repr(transparent)]
pub struct SearchStream<T> { /* private fields */ }