Trait HybridProvider

Source
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§

Source

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

Implementors§