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

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

Required Associated Types§

Required Methods§

Source

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

Perform the query 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<T, C> Query<C> for T
where T: Endpoint + Send + Sync, C: Client + Send + Sync,