Expand description
Types and code for mapping StreamIDs to streams on a circuit.
Re-exportsΒ§
use crate::stream::StreamMpscReceiver;πuse crate::stream::cmdcheck::AnyCmdChecker;πuse crate::stream::flow_ctrl::state::FlowCtrlHooks;πuse crate::stream::flow_ctrl::state::HalfStreamFlowCtrlHooks;πuse crate::stream::flow_ctrl::state::StreamFlowCtrl;πuse crate::stream::queue::StreamQueueSender;πuse crate::util::stream_poll_set::KeyAlreadyInsertedError;πuse crate::util::stream_poll_set::StreamPollSet;πuse crate::Error;πuse crate::Result;πuse pin_project::pin_project;πuse tor_async_utils::peekable_stream::PeekableStream;πuse tor_async_utils::peekable_stream::UnobtrusivePeekableStream;πuse tor_async_utils::stream_peek::StreamUnobtrusivePeeker;πuse tor_cell::relaycell::flow_ctrl::Xoff;πuse tor_cell::relaycell::flow_ctrl::Xon;πuse tor_cell::relaycell::flow_ctrl::XonKBpsEwma;πuse tor_cell::relaycell::RelayMsg;πuse tor_cell::relaycell::UnparsedRelayMsg;πuse tor_cell::relaycell::StreamId;πuse tor_cell::relaycell::msg::AnyRelayMsg;πuse std::collections::HashMap;πuse std::collections::hash_map;πuse std::num::NonZeroU16;πuse std::pin::Pin;πuse std::task::Poll;πuse std::task::Waker;πuse tor_error::bad_api_usage;πuse tor_error::internal;πuse web_time_compat::Instant;πuse rand::RngExt;πuse tracing::debug;πuse halfstream::HalfStream;π
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.