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Β§
- EndSent
Stream πEnt - Entry for a stream where we have sent an END, or other message indicating that the stream is terminated.
- Open
Stream πEnt - Entry for an open stream
- Open
Stream πEntStream - Private wrapper over
OpenStreamEnt. We implementfutures::Streamfor this wrapper, and not directly forOpenStreamEnt, so that client code canβt directly access the stream. - Priority π
- A priority for use with
StreamPollSet. - Stream
Map π - A map from stream IDs to stream entries. Each circuit has one for each hop.
EnumsΒ§
- Closed
Stream πEnt - The entry for a stream.
- Should
Send πEnd - Return value to indicate whether or not we send an END cell upon terminating a given stream.
- Stream
EntMut π - Mutable reference to a stream entry.
- Terminate
Reason π - A reason for terminating a stream.
FunctionsΒ§
- wrapping_
next_ πstream_ id - Convenience function for doing a wrapping increment of a
StreamId.