Type Definition barter_data::ExchangeWsStream
source · [−]pub type ExchangeWsStream<Exchange> = ExchangeStream<WebSocketParser, WsStream, Exchange, MarketEvent>;Expand description
Convenient type alias for an ExchangeStream utilising a tungstenite WebSocket
Trait Implementations
sourceimpl<Exchange> MarketStream for ExchangeWsStream<Exchange>where
Exchange: Subscriber + ExchangeTransformer + Send,
impl<Exchange> MarketStream for ExchangeWsStream<Exchange>where
Exchange: Subscriber + ExchangeTransformer + Send,
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.