Trait QueryRequest

pub trait QueryRequest:
    Clone
    + Debug
    + Send {
    type QueryResponse: Debug + Send;

    // Required method
    fn request(
        &self,
        client: QueryClient,
    ) -> impl Future<Output = Result<Self::QueryResponse, Error>>;
}

Required Associated Types§

Required Methods§

fn request( &self, client: QueryClient, ) -> impl Future<Output = Result<Self::QueryResponse, Error>>

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§