Trait gravel_ffi::FrontendContext

source ·
pub trait FrontendContext {
    // Required methods
    fn query(&self, query: RStr<'_>) -> QueryResult;
    fn run_hit_action(&self, hit: &ArcDynHit);
    fn run_secondary_hit_action(&self, hit: &ArcDynHit);
}
Expand description

Context object providing core functionality to the Frontend.

Required Methods§

source

fn query(&self, query: RStr<'_>) -> QueryResult

Runs the query against configured providers and returns results.

source

fn run_hit_action(&self, hit: &ArcDynHit)

Executes the passed hit’s action.

source

fn run_secondary_hit_action(&self, hit: &ArcDynHit)

Executes the passed hit’s secondary action.

Implementors§