Expand description
Code to represent its single guard node and track its status.
Re-exportsΒ§
use tor_basic_utils::retry::RetryDelay;πuse itertools::Itertools;πuse serde::Deserialize;πuse serde::Deserialize;πuse serde::Serialize;πuse serde::Serialize;πuse std::collections::HashMap;πuse std::net::SocketAddr;πuse tracing::info;πuse tracing::trace;πuse tracing::warn;πuse web_time_compat::Duration;πuse web_time_compat::Instant;πuse web_time_compat::InstantExt;πuse web_time_compat::SystemTime;πuse crate::dirstatus::DirStatus;πuse crate::sample::Candidate;πuse crate::skew::SkewObservation;πuse crate::util::randomize_time;πuse crate::ExternalActivity;πuse crate::GuardSetSelector;πuse crate::GuardUsageKind;πuse crate::sample;πuse crate::GuardParams;πuse crate::GuardRestriction;πuse crate::GuardUsage;πuse crate::ids::GuardId;πuse safelog::Redactable as _;πuse tor_basic_utils::onionperf_types::OnionperfEvent;πuse tor_basic_utils::onionperf_types::OnionperfGuardStatus;πuse tor_linkspec::ChanTarget;πuse tor_linkspec::ChannelMethod;πuse tor_linkspec::HasAddrs;πuse tor_linkspec::HasChanMethod;πuse tor_linkspec::HasRelayIds;πuse tor_linkspec::PtTarget;πuse tor_linkspec::RelayIds;πuse tor_persist::Futureproof;πuse tor_persist::JsonValue;π
StructsΒ§
- Circ
History π - The recent history of circuit activity on this guard.
- CrateId π
- The name and version of the crate that first picked a potential guard.
- Guard π
- A single guard node, as held by the guard manager.
EnumsΒ§
- Display
Rule π - What rule do we use when weβre displaying information about a guard?
- Guard
Disabled π - A reason for permanently disabling a guard.
- Newly
Confirmed π - Wrapper to declare whether a given successful use of a guard is the first successful use of the guard.
- Reachable π
- Tri-state to represent whether a guard is believed to be reachable or not.
ConstantsΒ§
- GUARD_
DIR_ πRETRY_ FLOOR - Lower bound for delay after get a failure using a guard as a directory cache.
FunctionsΒ§
- guard_
dirstatus π - Return a DirStatus entry for a guard.
- retry_
schedule π - Return a new RetryDelay tracker for a guard.