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.
HandshakeSubprotocols πŸ”’
The enabled/disabled status of subprotocols that are allowed to be requested through a subprotocol request during a circuit handshake.
InvalidHandshakeSubprotocolError πŸ”’
The subprotocol request had subprotocols that are not all supported in circuit handshakes.
UniqId
Process-unique identifier for a circuit.

ConstantsΒ§

HOPS πŸ”’
Estimated upper bound for the likely number of hops.