Skip to main content

LocalSource

Trait LocalSource 

Source
pub trait LocalSource:
    Send
    + Sync
    + 'static {
    // Required method
    fn search(&self, query: &QuerySpec, limit: usize) -> Vec<Item>;
}
Expand description

An index of the app’s own that answers with the local items, in the same frame: matches in what this device does not hold yet, such as a library’s synced index of books whose text is elsewhere. It answers on the UI thread, so within the frame’s budget.

Required Methods§

Source

fn search(&self, query: &QuerySpec, limit: usize) -> Vec<Item>

The items query finds, best first, at most limit.

Implementors§