Module stream_protocol

Module stream_protocol 

Source
Expand description

This contains all the types and logic needed when a stream procedure is opened in whatever of the two sides (client or server).

It contains the Generator type used when a server or a client wants to consume the stream opened and its messages.

Structs§

Generator
Generator struct contains only one field which it’s an unbounded receiver from unounded channel from tokio crate
GeneratorYielder
The other half for a Generator. It contains an only one field which it’s an unbounded sender from a unbounded channel from tokio crate
StreamProtocol
It knows how to process all the stream messages for client streams, server streams and bidirectional streams.

Enums§

GeneratorError
Errors related with Generator and GeneratorYielder