gravel_ffi

Trait 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§