Skip to main content

Module build

Module build 

Source
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.
TunnelBuilder
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 PendingClientTunnel to 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 CircParameters from the NetParameters from a consensus for an exit circuit or single onion service (when implemented).
onion_circparams_from_netparams
Extract a CircParameters from the NetParameters from a consensus for an onion circuit which also includes an onion service with Vanguard.