Skip to main content

QueryClient

Trait QueryClient 

Source
pub trait QueryClient: Send + Sync {
    // Required method
    fn get_events<'life0, 'async_trait>(
        &'life0 self,
        query: Query,
    ) -> Pin<Box<dyn Future<Output = Result<EventBook>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Trait for event query client operations.

Implement this trait to create mock clients for testing or alternative transport implementations.

Required Methods§

Source

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

Get events for the given query.

Implementors§