Skip to main content

Module shared_stream

Module shared_stream 

Source
Expand description

The market stream of every provider whose streams share one connection. The market stream of every provider whose streams share one connection.

Such a provider hands each stream a view of the shared connection rather than a socket of its own — see Subscriber::Transport — which the standard WebSocket initialisation, built to split and drive a socket, cannot read. SharedStream reads that view instead, and parses and transforms exactly as the standard stream does.

Structs§

SharedStream
The market stream every provider sharing a connection among its streams is served over.

Traits§

AttachedTransformer
A transformer that takes what its stream’s connection handed over on attaching.
SharedTransport
One stream’s view of a connection it shares with other streams: the raw frames carrying its own subscriptions, in the order the socket delivered them, and whatever the connection handed it on attaching.