Trait EvaluateQuery

Source
pub trait EvaluateQuery:
    Send
    + Sync
    + DynClone {
    // Required method
    fn evaluate<'life0, 'async_trait>(
        &'life0 self,
        evaluation: QueryEvaluation,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Evaluates a query

An evaluator needs to be able to respond to each step in the query pipeline

Required Methods§

Source

fn evaluate<'life0, 'async_trait>( &'life0 self, evaluation: QueryEvaluation, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Trait Implementations§

Source§

impl EvaluateQuery for Box<dyn EvaluateQuery>

Source§

fn evaluate<'life0, 'async_trait>( &'life0 self, evaluation: QueryEvaluation, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementations on Foreign Types§

Source§

impl EvaluateQuery for Box<dyn EvaluateQuery>

Source§

fn evaluate<'life0, 'async_trait>( &'life0 self, evaluation: QueryEvaluation, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§