Skip to main content

Module selector

Module selector 

Source
Expand description

Logic for selecting relays from a network directory, and reporting the outcome of such a selection.

Re-exportsΒ§

use crate::LowLevelRelayPredicate; πŸ”’
use crate::RelayExclusion; πŸ”’
use crate::RelayRestriction; πŸ”’
use crate::RelayUsage; πŸ”’
use tor_basic_utils::iter::FilterCount; πŸ”’
use tor_netdir::NetDir; πŸ”’
use tor_netdir::Relay; πŸ”’
use tor_netdir::WeightRole; πŸ”’
use std::fmt; πŸ”’

StructsΒ§

FcDisp πŸ”’
Helper to display filter counts
FilterCounts πŸ”’
A list of FilterCount, associated with a RelaySelector.
RelaySelector
Description of the requirements that a relay must implement in order to be selected.
Restr πŸ”’
A single restriction, along with a flag about whether it’s strict.
SelectionInfo
Information about how a given selection was generated.

FunctionsΒ§

with_possible_relaxation πŸ”’
Re-run relay selection, relaxing our selector as necessary.