Expand description
Abstract implementation of a channel manager
Re-exportsยง
use crate::factory::BootstrapReporter;๐use crate::mgr::state::ChannelForTarget;๐use crate::mgr::state::PendingChannelHandle;๐use crate::ChanProvenance;๐use crate::ChannelConfig;๐use crate::ChannelUsage;๐use crate::Dormancy;๐use crate::Error;๐use crate::Result;๐use async_trait::async_trait;๐use oneshot_fused_workaround as oneshot;๐use std::result::Result as StdResult;๐use std::sync::Arc;๐use std::time::Duration;๐use tor_error::error_report;๐use tor_error::internal;๐use tor_linkspec::HasChanMethod;๐use tor_linkspec::HasRelayIds;๐use tor_netdir::params::NetParameters;๐use tor_proto::channel::kist::KistParams;๐use tor_proto::channel::params::ChannelPaddingInstructionsUpdates;๐use tor_proto::memquota::ChannelAccount;๐use tor_proto::memquota::SpecificAccount as _;๐use tor_proto::memquota::ToplevelAccount;๐use tracing::instrument;๐use tracing::instrument;๐use tracing::trace;๐use safelog::Sensitive;๐use std::net::SocketAddr;๐use std::num::NonZero;๐use tor_async_utils::bw_pool::BandwidthPool;๐use tor_async_utils::global_rate_limit::GlobalRateLimitedConn;๐use tor_proto::RelayChannelAuthMaterial;๐
Modulesยง
- select ๐
- Logic for filtering and selecting channels in order to find suitable channels for a target.
- state ๐
- Simple implementation for the internal map state of a ChanMgr.
Structsยง
- Abstract
Chan ๐Mgr - A type- and network-agnostic implementation for
ChanMgr. - Chan
MgrConfig - This is the configuration for a
ChanMgrgiven to the constructor. - Chan
MgrMetrics ๐ - Struct to hold all the metrics counters / gauges / histograms we use.
- Channel
Bandwidth ๐Pools - Global read and write bandwidth pools shared by all channels.
- Pending
Launch ๐Guard - Keeps a pending launch entry and its waiters in sync.
Enumsยง
- Action ๐
- Possible actions that weโll decide to take when asked for a channel.
Constantsยง
- BW_
MAX_ ๐CHUNK - Maximum number of bytes a single channel requests from the bandwidth pool.
Traitsยง
- Abstract
Channel ๐ - Trait to describe as much of a
ChannelasAbstractChanMgrneeds to use. - Abstract
Channel ๐Factory - Trait to describe how channels-like objects are created.