AsyncQuery

Trait AsyncQuery 

Source
pub trait AsyncQuery<T, C>
where C: AsyncClient,
{ // Required method fn query_async( &self, client: &C, ) -> impl Future<Output = Result<T, ApiError<C::Error>>> + Send; }
Expand description

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

Required Methods§

Source

fn query_async( &self, client: &C, ) -> impl Future<Output = Result<T, ApiError<C::Error>>> + Send

Perform the query asynchronously against the client. Perform the query asynchronously against the client.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<E, C> AsyncQuery<Vec<u8>, C> for Raw<E>
where E: Endpoint + Sync, C: AsyncClient + Sync,

Source§

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