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§
sourcefn query(&self, query: RStr<'_>) -> QueryResult
fn query(&self, query: RStr<'_>) -> QueryResult
Runs the query against configured providers and returns results.
sourcefn run_hit_action(&self, hit: &ArcDynHit)
fn run_hit_action(&self, hit: &ArcDynHit)
Executes the passed hit’s action.
sourcefn run_secondary_hit_action(&self, hit: &ArcDynHit)
fn run_secondary_hit_action(&self, hit: &ArcDynHit)
Executes the passed hit’s secondary action.