Module streammap

Source
Expand description

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

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.