Type Definition barter_data::ExchangeWsStream

source ·
pub type ExchangeWsStream<Transformer> = ExchangeStream<WebSocketParser, WsStream, Transformer>;
Expand description

Convenient type alias for an ExchangeStream utilising a tungstenite WebSocket.

Trait Implementations§

source§

impl<Exchange, Kind, Transformer> MarketStream<Exchange, Kind> for ExchangeWsStream<Transformer>where Exchange: Connector + Send + Sync, Kind: SubKind + Send + Sync, Transformer: ExchangeTransformer<Exchange, Kind> + Send, Kind::Event: Send,

source§

fn init<'life0, 'async_trait>( subscriptions: &'life0 [Subscription<Exchange, Kind>] ) -> Pin<Box<dyn Future<Output = Result<Self, DataError>> + Send + 'async_trait>>where Subscription<Exchange, Kind>: Identifier<Exchange::Channel> + Identifier<Exchange::Market>, Self: 'async_trait, 'life0: 'async_trait,