Trait gravel_ffi::HitActionContext

source ·
pub trait HitActionContext {
    // Required methods
    fn hide_frontend(&self);
    fn refresh_frontend(&self);
    fn exit(&self);
    fn restart(&self);
    fn set_query(&self, query: RString);
    fn clear_caches(&self);
}
Expand description

Abstracts interaction between a hit action and the frontend.

Required Methods§

source

fn hide_frontend(&self)

Asks the frontend to hide.

source

fn refresh_frontend(&self)

Asks the frontend to query again.

Useful if the plugin just did something that changes the results of the next query.

source

fn exit(&self)

Exits the whole application.

source

fn restart(&self)

Restarts the whole application.

source

fn set_query(&self, query: RString)

Sets the query and runs it.

source

fn clear_caches(&self)

Clears caches in the entire application.

Implementors§