pub trait HybridProvider: RestProvider + StreamProvider {
// Required method
fn create_unified_connection<'life0, 'async_trait>(
&'life0 self,
event_handler: Arc<dyn DataEventHandler>,
) -> Pin<Box<dyn Future<Output = Result<HybridConnection<Self::Handler>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
Combined provider trait for exchanges that support both REST and streaming
Required Methods§
Sourcefn create_unified_connection<'life0, 'async_trait>(
&'life0 self,
event_handler: Arc<dyn DataEventHandler>,
) -> Pin<Box<dyn Future<Output = Result<HybridConnection<Self::Handler>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn create_unified_connection<'life0, 'async_trait>(
&'life0 self,
event_handler: Arc<dyn DataEventHandler>,
) -> Pin<Box<dyn Future<Output = Result<HybridConnection<Self::Handler>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Create a unified connection that supports both REST and streaming