Trait trait_net::client::ExecuteQuery
source · pub trait ExecuteQuery<Request> {
type Response;
// Required methods
fn query(
&self,
request: Request
) -> impl Future<Output = Self::Response> + Send;
fn query_with_retry(
&self,
request: Request
) -> impl Future<Output = Self::Response> + Send
where Request: Clone,
Self::Response: Send;
// Provided method
fn query_with_policy<Policy>(
&self,
request: Request,
policy: Policy
) -> impl Future<Output = Self::Response> + Send
where Request: Clone + Send,
Policy: RetryPolicy<Self::Response> + Send,
Self::Response: Send,
Self: Sync { ... }
}
Required Associated Types§
Required Methods§
fn query(&self, request: Request) -> impl Future<Output = Self::Response> + Send
fn query_with_retry( &self, request: Request ) -> impl Future<Output = Self::Response> + Send
Provided Methods§
fn query_with_policy<Policy>( &self, request: Request, policy: Policy ) -> impl Future<Output = Self::Response> + Send
Object Safety§
This trait is not object safe.