Skip to main content

Module vanguards

Module vanguards 

Source
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.
VanguardMgr
The vanguard manager.

Enumsยง

Layer
The vanguard layer.
ShutdownStatus ๐Ÿ”’
Whether the VanguardMgr::maintain_vanguard_sets task should continue running or shut down.

Constantsยง

STORAGE_KEY ๐Ÿ”’
The key used for storing the vanguard sets to persistent storage using StateMgr.