Trait Query

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

A trait which represents an asynchronous query which may be made to a client.

Required Methods§

Source

fn query<'life0, 'life1, 'async_trait>( &'life0 self, client: &'life1 C, ) -> Pin<Box<dyn Future<Output = Result<T>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Perform the query asynchronously against the client.

Implementors§

Source§

impl<E, T, C> Query<T, C> for E
where E: Endpoint + Sync, T: DeserializeOwned + 'static, C: Client + Sync,