Expand description
Circuit-related types and helpers.
This code is shared between the client and relay implementations.
Re-exportsΒ§
pub use crate::memquota::StreamAccount;pub use syncview::CircHopSyncView;pub use unique_id::UniqId;use crate::ccparams::CongestionControlParams;πuse crate::stream::flow_ctrl::params::FlowCtrlParameters;πuse tor_cell::relaycell::extend::SubprotocolRequest;πuse tor_error::ErrorKind;πuse tor_protover::Protocols;πpub(crate) use circ_sender::CircuitRxReceiver;πpub(crate) use circ_sender::CircuitRxSender;π
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.
- circ_
sender π - Implements a sender and a
Streamtype for sending messages from a channel to a circuit, prioritizing the delivery ofDESTROYmessages. - 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
Parameters - Description of the networkβs current rules for building circuits.
- Handshake
Subprotocols π - The enabled/disabled status of subprotocols that are allowed to be requested through a subprotocol request during a circuit handshake.
- Invalid
Handshake πSubprotocol Error - The subprotocol request had subprotocols that are not all supported in circuit handshakes.
ConstantsΒ§
- HOPS π
- Estimated upper bound for the likely number of hops.