Skip to main content

Query

Trait Query 

Source
pub trait Query<C> {
    type Result;

    // Required method
    fn execute(self, client: &C) -> impl Future<Output = Self::Result> + Send;
}
Expand description

An asynchronous query against a Client.

Required Associated Types§

Required Methods§

Source

fn execute(self, client: &C) -> impl Future<Output = Self::Result> + Send

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<T, C> Query<C> for T
where T: Endpoint + Send + Sync, C: Client + Send + Sync,