Trait swiftide_core::query_traits::Answer

source ·
pub trait Answer:
    Send
    + Sync
    + ToOwned {
    // Required method
    fn answer<'life0, 'async_trait>(
        &'life0 self,
        query: Query<Retrieved>,
    ) -> Pin<Box<dyn Future<Output = Result<Query<Answered>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Can answer the original query

Required Methods§

source

fn answer<'life0, 'async_trait>( &'life0 self, query: Query<Retrieved>, ) -> Pin<Box<dyn Future<Output = Result<Query<Answered>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<F> Answer for F