Skip to main content

Module candidate

Module candidate 

Source
Expand description

This module defines and implements traits used to create a guard sample from either bridges or relays.

Re-exportsΒ§

use std::sync::Arc; πŸ”’
use std::time::SystemTime; πŸ”’
use tor_linkspec::ByRelayIds; πŸ”’
use tor_linkspec::ChanTarget; πŸ”’
use tor_linkspec::HasRelayIds; πŸ”’
use tor_linkspec::OwnedChanTarget; πŸ”’
use tor_netdir::NetDir; πŸ”’
use tor_netdir::Relay; πŸ”’
use tor_netdir::RelayWeight; πŸ”’
use tor_relay_selection::RelayExclusion; πŸ”’
use tor_relay_selection::RelaySelector; πŸ”’
use tor_relay_selection::RelayUsage; πŸ”’
use crate::GuardFilter; πŸ”’
use crate::GuardParams; πŸ”’

StructsΒ§

Candidate πŸ”’
Information about a candidate that we have selected as a guard.
WeightThreshold πŸ”’
Information about how much of the universe we are using in a guard sample, and how much we are allowed to use.

EnumsΒ§

CandidateStatus πŸ”’
Information about a single guard candidate, as returned by Universe::status.
UniverseRef πŸ”’
Reference to a Universe of one of the types supported by this crate.

TraitsΒ§

Universe πŸ”’
A β€œUniverse” is a source from which guard candidates are drawn, and from which guards are updated.