pub trait DapiRequestExecutor {
// Required method
fn execute<'life0, 'async_trait, R>(
&'life0 self,
request: R,
settings: RequestSettings,
) -> Pin<Box<dyn Future<Output = ExecutionResult<R::Response, DapiClientError>> + Send + 'async_trait>>
where R: TransportRequest + Mockable + 'async_trait,
R::Response: Mockable,
Self: 'async_trait,
'life0: 'async_trait;
}Expand description
DAPI client executor trait.
Required Methods§
Sourcefn execute<'life0, 'async_trait, R>(
&'life0 self,
request: R,
settings: RequestSettings,
) -> Pin<Box<dyn Future<Output = ExecutionResult<R::Response, DapiClientError>> + Send + 'async_trait>>where
R: TransportRequest + Mockable + 'async_trait,
R::Response: Mockable,
Self: 'async_trait,
'life0: 'async_trait,
fn execute<'life0, 'async_trait, R>(
&'life0 self,
request: R,
settings: RequestSettings,
) -> Pin<Box<dyn Future<Output = ExecutionResult<R::Response, DapiClientError>> + Send + 'async_trait>>where
R: TransportRequest + Mockable + 'async_trait,
R::Response: Mockable,
Self: 'async_trait,
'life0: 'async_trait,
Execute request using this DAPI client.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".