summaryrefslogtreecommitdiffstats
path: root/tokio/src/time
diff options
context:
space:
mode:
authorxliiv <tymoteusz.jankowski@gmail.com>2020-04-12 19:25:55 +0200
committerGitHub <noreply@github.com>2020-04-12 10:25:55 -0700
commitf39c15334e74b07a44efaa0f7201262e17e4f062 (patch)
treec13b2949b0a82d4443d83b724d7f99bae13a035e /tokio/src/time
parent060d22bd10ac66d91b70522138816c9bd05d5ead (diff)
docs: replace some html links with rustdoc paths (#2381)
Included changes - all simple references like `<type>.<name>.html` for these types - enum - fn - struct - trait - type - simple references for methods, like struct.DelayQueue.html#method.poll Refs: #1473
Diffstat (limited to 'tokio/src/time')
-rw-r--r--tokio/src/time/delay_queue.rs14
-rw-r--r--tokio/src/time/timeout.rs2
2 files changed, 8 insertions, 8 deletions
diff --git a/tokio/src/time/delay_queue.rs b/tokio/src/time/delay_queue.rs
index d0b1f192..59f901a9 100644
--- a/tokio/src/time/delay_queue.rs
+++ b/tokio/src/time/delay_queue.rs
@@ -2,7 +2,7 @@
//!
//! See [`DelayQueue`] for more details.
//!
-//! [`DelayQueue`]: struct.DelayQueue.html
+//! [`DelayQueue`]: struct@DelayQueue
use crate::time::wheel::{self, Wheel};
use crate::time::{delay_until, Delay, Duration, Error, Instant};
@@ -114,7 +114,7 @@ use std::task::{self, Poll};
///
/// [`insert`]: #method.insert
/// [`insert_at`]: #method.insert_at
-/// [`Key`]: struct.Key.html
+/// [`Key`]: struct@Key
/// [`Stream`]: https://docs.rs/futures/0.1/futures/stream/trait.Stream.html
/// [`poll`]: #method.poll
/// [`Stream::poll`]: #method.poll
@@ -148,7 +148,7 @@ pub struct DelayQueue<T> {
///
/// Values are returned by [`DelayQueue::poll`].
///
-/// [`DelayQueue::poll`]: struct.DelayQueue.html#method.poll
+/// [`DelayQueue::poll`]: method@DelayQueue::poll
#[derive(Debug)]
pub struct Expired<T> {
/// The data stored in the queue
@@ -166,8 +166,8 @@ pub struct Expired<T> {
/// Instances of `Key` are returned by [`DelayQueue::insert`]. See [`DelayQueue`]
/// documentation for more details.
///
-/// [`DelayQueue`]: struct.DelayQueue.html
-/// [`DelayQueue::insert`]: struct.DelayQueue.html#method.insert
+/// [`DelayQueue`]: struct@DelayQueue
+/// [`DelayQueue::insert`]: method@DelayQueue::insert
#[derive(Debug, Clone)]
pub struct Key {
index: usize,
@@ -298,7 +298,7 @@ impl<T> DelayQueue<T> {
/// [`poll`]: #method.poll
/// [`remove`]: #method.remove
/// [`reset`]: #method.reset
- /// [`Key`]: struct.Key.html
+ /// [`Key`]: struct@Key
/// [type]: #
pub fn insert_at(&mut self, value: T, when: Instant) -> Key {
assert!(self.slab.len() < MAX_ENTRIES, "max entries exceeded");
@@ -406,7 +406,7 @@ impl<T> DelayQueue<T> {
/// [`poll`]: #method.poll
/// [`remove`]: #method.remove
/// [`reset`]: #method.reset
- /// [`Key`]: struct.Key.html
+ /// [`Key`]: struct@Key
/// [type]: #
pub fn insert(&mut self, value: T, timeout: Duration) -> Key {
self.insert_at(value, Instant::now() + timeout)
diff --git a/tokio/src/time/timeout.rs b/tokio/src/time/timeout.rs
index 7a372544..401856a8 100644
--- a/tokio/src/time/timeout.rs
+++ b/tokio/src/time/timeout.rs
@@ -2,7 +2,7 @@
//!
//! See [`Timeout`] documentation for more details.
//!
-//! [`Timeout`]: struct.Timeout.html
+//! [`Timeout`]: struct@Timeout
use crate::time::{delay_until, Delay, Duration, Instant};