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.
circ_sender ๐Ÿ”’
Implements a sender and a Stream type for sending messages from a channel to a circuit, prioritizing the delivery of DESTROY messages.
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.