Expand description
Conflux-related functionality
Re-exportsยง
use std::pin::Pin;๐use std::sync::atomic;๐use std::sync::atomic::AtomicU64;๐use std::sync::Arc;๐use std::sync::Mutex;๐use futures::FutureExt as _;๐use futures::StreamExt;๐use futures::select_biased;๐use itertools::Itertools;๐use itertools::structs::ExactlyOneError;๐use smallvec::SmallVec;๐use smallvec::smallvec;๐use tor_rtcompat::SleepProvider as _;๐use tor_rtcompat::SleepProviderExt as _;๐use tracing::info;๐use tracing::instrument;๐use tracing::instrument;๐use tracing::trace;๐use tracing::warn;๐use tor_cell::relaycell::AnyRelayMsgOuter;๐use tor_error::Bug;๐use tor_error::bad_api_usage;๐use tor_error::internal;๐use tor_linkspec::HasRelayIds as _;๐use crate::circuit::UniqId;๐use crate::circuit::circhop::SendRelayCell;๐use crate::client::circuit::TunnelMutableState;๐use crate::client::circuit::padding::PaddingEvent;๐use crate::client::circuit::path::HopDetail;๐use crate::conflux::cmd_counts_towards_seqno;๐use crate::conflux::msghandler::ConfluxStatus;๐use crate::conflux::msghandler::RemoveLegReason;๐use crate::congestion::params::CongestionWindowParams;๐use crate::crypto::cell::HopNum;๐use crate::streammap;๐use crate::tunnel::TunnelId;๐use crate::util::err::ReactorError;๐use crate::util::poll_all::PollAll;๐use crate::util::tunnel_activity::TunnelActivity;๐use super::circuit::CircHop;๐use super::Circuit;๐use super::CircuitEvent;๐use crate::conflux::msghandler::ConfluxMsgHandler;๐use msghandler::ClientConfluxMsgHandler;๐use tor_cell::relaycell::conflux::V1DesiredUx;๐use tor_cell::relaycell::conflux::V1LinkPayload;๐use tor_cell::relaycell::conflux::V1Nonce;๐use tor_cell::relaycell::msg::ConfluxLink;๐use tor_cell::relaycell::msg::ConfluxSwitch;๐
Modulesยง
- msghandler ๐
- Client-side conflux message handling.
Structsยง
- Conflux
Set ๐ - A set with one or more circuits.
- Join
Point ๐ - The conflux join point.
- NotSingle
LegError ๐ - An error returned when a method is expecting a single-leg conflux circuit, but it is not single-leg.
Constantsยง
- CIRC_
EVENT_ ๐COUNT - The expected number of circuit events to be returned from
ConfluxSet::next_circ_event - MAX_
CONFLUX_ ๐LEGS - The maximum number of conflux legs to store in the conflux set SmallVec.
- NUM_
CIRC_ ๐FUTURES - The number of futures we add to the per-circuit
PollAllfuture inConfluxSet::next_circ_event.