Expand description
This module provides the PathBuilder helper for building vanguard TorPaths.
Re-exportsยง
use std::result::Result as StdResult;๐use rand::Rng;๐use tor_error::Bug;๐use tor_error::internal;๐use tor_guardmgr::vanguards::Layer;๐use tor_guardmgr::vanguards::VanguardMgr;๐use tor_linkspec::HasRelayIds;๐use tor_netdir::NetDir;๐use tor_netdir::Relay;๐use tor_relay_selection::RelayExclusion;๐use tor_relay_selection::RelaySelector;๐use tor_rtcompat::Runtime;๐use crate::path::MaybeOwnedRelay;๐use crate::path::TorPath;๐use crate::Error;๐use crate::Result;๐
Structsยง
- Path
Builder ๐ - A vanguard path builder.
Enumsยง
- HopKind ๐
- The type of a
PathBuilderhop.
Functionsยง
- exclude_
identities ๐ - Build a
RelayExclusionthat excludes the specified relays. - exclude_
neighbors ๐ - Create a
RelayExclusionsuitable for selecting the next hop to add tohops. - select_
middle_ ๐for_ vanguard_ circ - Select a middle relay that can be appended to a vanguard circuit.
- selector_
excluding_ ๐neighbors - Extend the selector T to also exclude neighbors, based on
hops.