Expand description
Circuit-related types and helpers.
This code is shared between the client and relay implementations.
Re-exportsยง
pub use crate::memquota::StreamAccount;
Modulesยง
- cell_
sender ๐ - Implements an outbound Sink type for cells being sent from a circuit onto a channel.
- celltypes ๐
- Wrapper types for subsets of ChanMsg and RelayMsg types.
- circhop ๐
- Module exposing structures relating to a reactorโs view of a circuit hop.
- create ๐
- Helpers for handling CREATE* cells.
- padding ๐
- Circuit padding
- reactor ๐
- Module exposing the circuit reactor subsystem.
- syncview ๐
- Implement synchronous views of circuit internals.
- unique_
id ๐ - Unique identifiers for circuits.
Structsยง
- Circ
HopSync View - A view of a circuit hopโs internals, usable in a synchronous callback.
- Circ
Parameters - Description of the networkโs current rules for building circuits.
- UniqId
- Process-unique identifier for a circuit.
Constantsยง
- HOPS ๐
- Estimated upper bound for the likely number of hops.
Type Aliasesยง
- Circuit
RxReceiver ๐ - MPSC queue for inbound data on its way from channel to circuit, receiver
- Circuit
RxSender ๐ - The following two MPSCs take any channel message as the receiving end can be either a client or a relay circuit reactor. The reactor itself will convert into its restricted message set. On error, the circuit will shutdown as it will be considered a protocol violation.