swiftide::traits

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<(), Error>> + Send + 'async_trait>>
       where 'life0: 'async_trait,
             Self: '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<(), Error>> + Send + 'async_trait>>
where 'life0: 'async_trait, Self: 'async_trait,

Trait Implementations§

Source§

impl<'clone> Clone for Box<dyn EvaluateQuery + 'clone>

Source§

fn clone(&self) -> Box<dyn EvaluateQuery + 'clone>

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<'clone> Clone for Box<dyn EvaluateQuery + Send + 'clone>

Source§

fn clone(&self) -> Box<dyn EvaluateQuery + Send + 'clone>

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<'clone> Clone for Box<dyn EvaluateQuery + Send + Sync + 'clone>

Source§

fn clone(&self) -> Box<dyn EvaluateQuery + Send + Sync + 'clone>

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<'clone> Clone for Box<dyn EvaluateQuery + Sync + 'clone>

Source§

fn clone(&self) -> Box<dyn EvaluateQuery + Sync + 'clone>

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl EvaluateQuery for Box<dyn EvaluateQuery>

Source§

fn evaluate<'life0, 'async_trait>( &'life0 self, evaluation: QueryEvaluation, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where 'life0: 'async_trait, Box<dyn EvaluateQuery>: '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<(), Error>> + Send + 'async_trait>>
where 'life0: 'async_trait, Box<dyn EvaluateQuery>: 'async_trait,

Source§

impl EvaluateQuery for Arc<dyn EvaluateQuery>

Source§

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

Implementors§