Skip to main content

ResourceSearch

Trait ResourceSearch 

pub trait ResourceSearch: Send + Sync {
    // Required method
    fn find(
        &self,
        caller: &Caller,
        needle: &str,
    ) -> Pending<Result<Vec<Found>, ActionHostError>> ⓘ;
}
Expand description

The desktop’s one search, as a host that holds it offers it to a caller who asks by words: the palette’s ranking, the same results in the same order. The search itself lives on the thread that holds the desktop, so an answer comes back later, as an action’s does.

Required Methods§

fn find( &self, caller: &Caller, needle: &str, ) -> Pending<Result<Vec<Found>, ActionHostError>> ⓘ

What needle finds, best first, over the workspace caller acts in and what it may read there.

§Errors

The search could not be run: the host has none, or it refuses caller.

Implementors§