Expand description
Experimental support for vanguards.
For more information, see the vanguards spec.
Re-exportsยง
use std::sync::Arc;๐use std::sync::RwLock;๐use std::sync::Weak;๐use std::time::Duration;๐use std::time::SystemTime;๐use futures::stream::BoxStream;๐use futures::FutureExt as _;๐use futures::future;๐use futures::StreamExt as _;๐use futures::select_biased;๐use postage::stream::Stream as _;๐use postage::watch;๐use tor_rtcompat::SpawnExt as _;๐use tor_async_utils::PostageWatchSenderExt as _;๐use tor_config::ReconfigureError;๐use tor_error::error_report;๐use tor_error::internal;๐use tor_error::into_internal;๐use tor_netdir::DirEvent;๐use tor_netdir::NetDir;๐use tor_netdir::NetDirProvider;๐use tor_netdir::Timeliness;๐use tor_persist::DynStorageHandle;๐use tor_persist::StateMgr;๐use tor_relay_selection::RelaySelector;๐use tor_rtcompat::Runtime;๐use tracing::debug;๐use tracing::info;๐use tracing::instrument;๐use tracing::instrument;๐use crate::RetireCircuits;๐use crate::VanguardMode;๐use set::VanguardSets;๐use crate::VanguardConfig;๐pub use config::VanguardParams;pub use err::VanguardMgrError;pub use set::Vanguard;use tor_config::ExplicitOrAuto;๐use tor_netdir::testprovider::TestNetDirProvider;๐use tor_persist::TestingStateMgr;๐use tor_rtmock::MockRuntime;๐
Modulesยง
- config
- Vanguard manager configuration
- err ๐
- Error types for the vanguards subsystem.
- set ๐
- Vanguard sets
Structsยง
- Inner ๐
- The mutable inner state of
VanguardMgr. - Vanguard
Mgr - The vanguard manager.
Enumsยง
- Layer
- The vanguard layer.
- Shutdown
Status ๐ - Whether the
VanguardMgr::maintain_vanguard_setstask should continue running or shut down.
Constantsยง
- STORAGE_
KEY ๐ - The key used for storing the vanguard sets to persistent storage using
StateMgr.