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;
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 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Β§

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.

ConstantsΒ§

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