Fix some Rustdoc links.
This commit is contained in:
parent
6282df34fb
commit
3e92d30e49
|
@ -51,7 +51,7 @@ impl FallbackDir {
|
||||||
FallbackDirBuilder::default()
|
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 {
|
pub fn as_guard(&self) -> crate::FirstHop {
|
||||||
crate::FirstHop {
|
crate::FirstHop {
|
||||||
id: FallbackId::from_chan_target(self).into(),
|
id: FallbackId::from_chan_target(self).into(),
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
//! 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 rand::seq::IteratorRandom;
|
||||||
use std::time::Instant;
|
use std::time::Instant;
|
||||||
|
|
|
@ -572,7 +572,7 @@ impl Guard {
|
||||||
dir.weight_by_rsa_id(&self.id.0.rsa, tor_netdir::WeightRole::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 {
|
pub(crate) fn get_external_rep(&self) -> crate::FirstHop {
|
||||||
crate::FirstHop {
|
crate::FirstHop {
|
||||||
id: self.id.clone().into(),
|
id: self.id.clone().into(),
|
||||||
|
|
|
@ -436,7 +436,7 @@ impl<R: Runtime> GuardMgr<R> {
|
||||||
|
|
||||||
/// Select a guard for a given [`GuardUsage`].
|
/// 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
|
/// guard we have picked, a [`GuardMonitor`] object that the
|
||||||
/// caller can use to report whether its attempt to use the guard
|
/// caller can use to report whether its attempt to use the guard
|
||||||
/// succeeded or failed, and a [`GuardUsable`] future that the
|
/// succeeded or failed, and a [`GuardUsable`] future that the
|
||||||
|
@ -966,7 +966,7 @@ impl GuardMgrInner {
|
||||||
/// Helper: Select a fallback directory.
|
/// Helper: Select a fallback directory.
|
||||||
///
|
///
|
||||||
/// Called when we have no guard information to use. Return values are as
|
/// Called when we have no guard information to use. Return values are as
|
||||||
/// for [`select_guard()`]
|
/// for [`GuardMgr::select_guard()`]
|
||||||
fn select_fallback(
|
fn select_fallback(
|
||||||
&self,
|
&self,
|
||||||
now: Instant,
|
now: Instant,
|
||||||
|
|
Loading…
Reference in New Issue