Expand description
Module exposing structures relating to a reactorβs view of a circuit hop.
Re-exportsΒ§
use crate::client::circuit::handshake::RelayCryptLayerProtocol;πuse crate::ccparams::CongestionControlParams;πuse crate::circuit::CircParameters;πuse crate::congestion::CongestionControl;πuse crate::congestion::sendme;πuse crate::memquota::SpecificAccount;πuse crate::memquota::StreamAccount;πuse crate::stream::CloseStreamBehavior;πuse crate::stream::SEND_WINDOW_INIT;πuse crate::stream::StreamMpscSender;πuse crate::stream::cmdcheck::AnyCmdChecker;πuse crate::stream::cmdcheck::StreamStatus;πuse crate::stream::flow_ctrl::params::FlowCtrlParameters;πuse crate::stream::flow_ctrl::state::FlowCtrlHooks;πuse crate::stream::flow_ctrl::state::StreamFlowCtrl;πuse crate::stream::flow_ctrl::state::StreamRateLimit;πuse crate::stream::flow_ctrl::state::WithSidechannelMitigations;πuse crate::stream::flow_ctrl::xon_xoff::reader::DrainRateRequest;πuse crate::stream::queue::StreamQueueReceiver;πuse crate::stream::queue::stream_queue;πuse crate::streammap;πuse crate::streammap::EndSentStreamEnt;πuse crate::streammap::OpenStreamEnt;πuse crate::streammap::ShouldSendEnd;πuse crate::streammap::StreamEntMut;πuse crate::streammap::StreamMap;πuse crate::util::notify::NotifyReceiver;πuse crate::util::notify::NotifySender;πuse crate::Error;πuse crate::HopNum;πuse crate::Result;πuse derive_deftly::Deftly;πuse postage::watch;πuse safelog::sensitive as sv;πuse tracing::debug;πuse tracing::trace;πuse tor_cell::chancell::BoxedCellBody;πuse tor_cell::chancell::CircId;πuse tor_cell::relaycell::extend::CcRequest;πuse tor_cell::relaycell::extend::CircRequestExt;πuse tor_cell::relaycell::flow_ctrl::Xoff;πuse tor_cell::relaycell::flow_ctrl::Xon;πuse tor_cell::relaycell::flow_ctrl::XonKBpsEwma;πuse tor_cell::relaycell::msg::AnyRelayMsg;πuse tor_cell::relaycell::AnyRelayMsgOuter;πuse tor_cell::relaycell::RelayCellDecoder;πuse tor_cell::relaycell::RelayCellDecoderResult;πuse tor_cell::relaycell::RelayCellFormat;πuse tor_cell::relaycell::RelayCmd;πuse tor_cell::relaycell::StreamId;πuse tor_cell::relaycell::UnparsedRelayMsg;πuse tor_error::Bug;πuse tor_error::ErrorKind;πuse tor_error::HasKind;πuse tor_error::internal;πuse tor_error::into_internal;πuse tor_memquota::derive_deftly_template_HasMemoryCost;πuse tor_memquota::mq_queue::ChannelSpec as _;πuse tor_memquota::mq_queue::MpscSpec;πuse tor_protover::named;πuse tor_rtcompat::DynTimeProvider;πuse std::num::NonZeroU32;πuse std::pin::Pin;πuse std::result::Result as StdResult;πuse std::sync::Arc;πuse std::sync::Mutex;πuse web_time_compat::Instant;πuse crate::ccparams::Algorithm;πuse crate::ccparams::AlgorithmDiscriminants;πuse crate::circuit::HandshakeSubprotocols;πuse crate::relay::CircNetParameters;πuse crate::relay::CongestionControlNetParams;πuse cfg_if::cfg_if;π
StructsΒ§
- Circ
HopInbound π - The inbound state of a hop.
- Circ
HopOutbound π - The outbound state of a hop.
- HopSettings π
- The settings we use for single hop of a circuit.
- Reactor
Stream πComponents - A collection of components that can be used to interact with the reactorβs view of a Tor stream.
- Send
Relay πCell - Instructions for sending a RELAY cell.
EnumsΒ§
- Handshake
Params πError - An error that can occur when building a
HopSettingsusing parameters requested during a circuit handshake. - HopNegotiation
Type π - Type of negotiation that weβll be performing as we establish a hop.
ConstantsΒ§
- CIRCUIT_
BUFFER_ πSIZE - The size of the streamβs outbound RELAY message queue.
FunctionsΒ§
- cvt π
- Convert a limit from the form used in a HopSettings to that used here. (The format we use here is more compact.)
- try_
decrement_ πcell_ limit - If
valisSome(1), return Err(()); otherwise decrement it (if it is Some) and return Ok(()).