Trait ListQueryHandler

Source
pub unsafe trait ListQueryHandler {
    type Item;

    // Required methods
    async fn handle_query<'a>(
        &mut self,
        query: ScriptQuery,
        repo: &'a mut ScriptRepo,
    ) -> Result<Option<RepoEntry<'a>>>;
    fn handle_item(&mut self, item: Self::Item) -> Option<ListQuery>;
    fn should_raise_dont_fuzz_on_empty() -> bool;
    fn should_return_all_on_empty() -> bool;
}

Required Associated Types§

Required Methods§

Source

async fn handle_query<'a>( &mut self, query: ScriptQuery, repo: &'a mut ScriptRepo, ) -> Result<Option<RepoEntry<'a>>>

Source

fn handle_item(&mut self, item: Self::Item) -> Option<ListQuery>

Source

fn should_raise_dont_fuzz_on_empty() -> bool

Source

fn should_return_all_on_empty() -> bool

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§