Module streammap

Module streammap 

Source
Expand description

Types and code for mapping StreamIDs to streams on a circuit.

ModulesΒ§

halfstream πŸ”’
Type and code for handling a β€œhalf-closed” stream.

StructsΒ§

EndSentStreamEnt πŸ”’
Entry for a stream where we have sent an END, or other message indicating that the stream is terminated.
OpenStreamEnt πŸ”’
Entry for an open stream
OpenStreamEntStream πŸ”’
Private wrapper over OpenStreamEnt. We implement futures::Stream for this wrapper, and not directly for OpenStreamEnt, so that client code can’t directly access the stream.
Priority πŸ”’
A priority for use with StreamPollSet.
StreamMap πŸ”’
A map from stream IDs to stream entries. Each circuit has one for each hop.

EnumsΒ§

ClosedStreamEnt πŸ”’
The entry for a stream.
ShouldSendEnd πŸ”’
Return value to indicate whether or not we send an END cell upon terminating a given stream.
StreamEntMut πŸ”’
Mutable reference to a stream entry.
TerminateReason πŸ”’
A reason for terminating a stream.

FunctionsΒ§

wrapping_next_stream_id πŸ”’
Convenience function for doing a wrapping increment of a StreamId.