Skip to main content

CommandSearchHandler

Type Alias CommandSearchHandler 

Source
pub type CommandSearchHandler = Rc<dyn Fn(SharedString, &mut Context<'_, CommandState>) -> Task<Vec<CommandEntry>>>;
Expand description

A search the application runs itself: given the query, it returns the commands to show, when it has them. See CommandState::with_search_handler.

Aliased Typeยง

pub struct CommandSearchHandler { /* private fields */ }