Expand description
Facilities to build circuits directly, instead of via a circuit manager.
Re-exportsยง
use crate::path::OwnedPath;๐use crate::path::TorPath;๐use crate::timeouts;๐use crate::timeouts::Action;๐use crate::Error;๐use crate::Result;๐use async_trait::async_trait;๐use futures::Future;๐use oneshot_fused_workaround as oneshot;๐use std::sync::Arc;๐use std::sync::atomic::AtomicU32;๐use std::sync::atomic::Ordering;๐use tor_chanmgr::ChanMgr;๐use tor_chanmgr::ChanProvenance;๐use tor_chanmgr::ChannelUsage;๐use tor_error::into_internal;๐use tor_guardmgr::GuardStatus;๐use tor_linkspec::IntoOwnedChanTarget;๐use tor_linkspec::OwnedChanTarget;๐use tor_linkspec::OwnedCircTarget;๐use tor_netdir::params::NetParameters;๐use tor_proto::ccparams;๐use tor_proto::ccparams::AlgorithmType;๐use tor_proto::client::circuit::CircParameters;๐use tor_proto::client::circuit::PendingClientTunnel;๐use tor_proto::CellCount;๐use tor_proto::ClientTunnel;๐use tor_proto::FlowCtrlParameters;๐use tor_rtcompat::SpawnExt;๐use tor_rtcompat::Runtime;๐use tor_rtcompat::SleepProviderExt;๐use tor_units::Percentage;๐use tracing::instrument;๐use tracing::instrument;๐use web_time_compat::Duration;๐use web_time_compat::Instant;๐use tor_guardmgr::vanguards::VanguardMgr;๐pub(crate) use guardstatus::GuardStatusHandle;๐
Modulesยง
- guardstatus ๐
- Helpers for reporting information about guard status to the guard manager.
Structsยง
- Builder ๐
- An implementation type for
TunnelBuilder. - Tunnel
Builder - A factory object to build circuits.
Traitsยง
- Buildable ๐
- Represents an objects that can be constructed in a circuit-like way.
Functionsยง
- build_
cc_ ๐fixedwindow - Return the congestion control FixedWindow algorithm using the given network parameters.
- build_
cc_ ๐fixedwindow_ params - Return the parameters for the congestion control FixedWindow algorithm using the given network parameters.
- build_
cc_ ๐vegas - Return the congestion control Vegas algorithm using the given network parameters.
- circparameters_
from_ ๐netparameters - Return a new circuit parameter struct using the given network parameters and algorithm to use.
- create_
common ๐ - Try to make a
PendingClientTunnelto a given relay, and start its reactor. - double_
timeout ๐ - Helper function: spawn a future as a background task, and run it with two separate timeouts.
- exit_
circparams_ from_ netparams - Extract a
CircParametersfrom theNetParametersfrom a consensus for an exit circuit or single onion service (when implemented). - onion_
circparams_ from_ netparams - Extract a
CircParametersfrom theNetParametersfrom a consensus for an onion circuit which also includes an onion service with Vanguard.