Skip to main content

Module vanguards

Module vanguards 

Source
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ยง

PathBuilder ๐Ÿ”’
A vanguard path builder.

Enumsยง

HopKind ๐Ÿ”’
The type of a PathBuilder hop.

Functionsยง

exclude_identities ๐Ÿ”’
Build a RelayExclusion that excludes the specified relays.
exclude_neighbors ๐Ÿ”’
Create a RelayExclusion suitable for selecting the next hop to add to hops.
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.