Module barter_data::streams::builder
source · Expand description
Defines the StreamBuilder and
MultiStreamBuilder APIs for ergonomically initialising
MarketStream Streams.
Modules§
- Defines the
MultiStreamBuilderAPI for ergonomically initialising a commonStreams<Output>from multipleStreamBuilder<SubscriptionKind>s.
Structs§
- Convenient type that holds the
mpsc::UnboundedSenderandmpsc::UnboundedReceiverfor aMarketEvent<T>channel. - Builder to configure and initialise a
Streams<MarketEvent<SubscriptionKind::Event>instance for a specificSubscriptionKind.
Functions§
- Validate the provided collection of
Subscriptions, ensuring that the associated exchange supports everySubscriptionInstrumentKind.
Type Aliases§
- Communicative type alias representing the
Futureresult of aSubscriptionvalidatecall generated whilst executingStreamBuilder::subscribe.