Skip to content
Snippets Groups Projects
Commit 3e92d30e authored by Nick Mathewson's avatar Nick Mathewson :game_die:
Browse files

Fix some Rustdoc links.

parent 6282df34
No related branches found
No related tags found
1 merge request!433Refactor FallbackDir handling and implement a retry-after-delay mechanism.
......@@ -51,7 +51,7 @@ impl FallbackDir {
FallbackDirBuilder::default()
}
/// Return a copy of this FallbackDir as a [`Guard`](crate::Guard)
/// Return a copy of this FallbackDir as a [`FirstHop`](crate::FirstHop)
pub fn as_guard(&self) -> crate::FirstHop {
crate::FirstHop {
id: FallbackId::from_chan_target(self).into(),
......
//! Declare the [`FallbackSet`] type, which is used to store a set of FallbackDir.
//! Declare the [`FallbackState`] type, which is used to store a set of FallbackDir.
use rand::seq::IteratorRandom;
use std::time::Instant;
......
......@@ -572,7 +572,7 @@ impl Guard {
dir.weight_by_rsa_id(&self.id.0.rsa, tor_netdir::WeightRole::Guard)
}
/// Return a [`crate::Guard`] object to represent this guard.
/// Return a [`FirstHop`](crate::FirstHop) object to represent this guard.
pub(crate) fn get_external_rep(&self) -> crate::FirstHop {
crate::FirstHop {
id: self.id.clone().into(),
......
......@@ -436,7 +436,7 @@ impl<R: Runtime> GuardMgr<R> {
/// Select a guard for a given [`GuardUsage`].
///
/// On success, we return a [`GuardId`] object to identify which
/// On success, we return a [`FirstHopId`] object to identify which
/// guard we have picked, a [`GuardMonitor`] object that the
/// caller can use to report whether its attempt to use the guard
/// succeeded or failed, and a [`GuardUsable`] future that the
......@@ -966,7 +966,7 @@ impl GuardMgrInner {
/// Helper: Select a fallback directory.
///
/// Called when we have no guard information to use. Return values are as
/// for [`select_guard()`]
/// for [`GuardMgr::select_guard()`]
fn select_fallback(
&self,
now: Instant,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment