pub trait CreateSource: Send {
// Required method
fn create_source<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
context: &'life1 dyn BatchTaskContext,
prost_source: &'life2 PbExchangeSource,
) -> Pin<Box<dyn Future<Output = Result<ExchangeSourceImpl>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
}
Expand description
CreateSource
determines the right type of ExchangeSource
to create.