Skip to main content

Module circuit

Module circuit 

Source
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ยง

CircHopSyncView
A view of a circuit hopโ€™s internals, usable in a synchronous callback.
CircParameters
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ยง

CircuitRxReceiver ๐Ÿ”’
MPSC queue for inbound data on its way from channel to circuit, receiver
CircuitRxSender ๐Ÿ”’
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.