Trait request_response::data_source::DataSource
source · pub trait DataSource<R: Request>:
Send
+ Sync
+ 'static
+ Clone {
// Required method
fn derive_response_for<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 R,
) -> Pin<Box<dyn Future<Output = Result<R::Response>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}
Expand description
The trait that allows the [RequestResponseProtocol
] to calculate/derive a response for a specific request
Required Methods§
Object Safety§
This trait is not object safe.