Skip to main content

Module conflux

Module conflux 

Source
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::ConfluxSwitch; ๐Ÿ”’

Modulesยง

msghandler ๐Ÿ”’
Client-side conflux message handling.

Structsยง

ConfluxSet ๐Ÿ”’
A set with one or more circuits.
JoinPoint ๐Ÿ”’
The conflux join point.
NotSingleLegError ๐Ÿ”’
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 PollAll future in ConfluxSet::next_circ_event.