Type Definition barter_data::ExchangeWebSocket
source · [−]pub type ExchangeWebSocket<Exchange> = ExchangeSocket<WebSocketParser, WebSocket, Exchange, MarketEvent>;Expand description
Convenient type alias for an ExchangeSocket utilising a tungstenite WebSocket
Trait Implementations
sourceimpl<Exchange> MarketStream for ExchangeWebSocket<Exchange> where
Exchange: Subscriber + ExchangeTransformer + Send,
<Exchange as Transformer<MarketEvent>>::Input: Identifiable,
impl<Exchange> MarketStream for ExchangeWebSocket<Exchange> where
Exchange: Subscriber + ExchangeTransformer + Send,
<Exchange as Transformer<MarketEvent>>::Input: Identifiable,
sourcefn init<'life0, 'async_trait>(
subscriptions: &'life0 [Subscription]
) -> Pin<Box<dyn Future<Output = Result<Self, SocketError>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn init<'life0, 'async_trait>(
subscriptions: &'life0 [Subscription]
) -> Pin<Box<dyn Future<Output = Result<Self, SocketError>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Initialises a new MarketStream using the provided subscriptions.