mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-24 00:00:11 +02:00
docs: fixed links to tokio_timer::clock::Now (#842)
* docs: fixed links to tokio_timer::clock::Now in tokio-timer/src/timer/mod.rs * docs: fixed links to std::time::Instant in tokio-timer/src/timer/mod.rs
This commit is contained in:
committed by
Stjepan Glavina
parent
74c473d68f
commit
733d432b80
@@ -10,23 +10,25 @@
|
||||
//! `Clone`, `Send`, and `Sync`. This type is used to create instances of
|
||||
//! [`Delay`].
|
||||
//!
|
||||
//! The [`Now`] trait describes how to get an `Instance` representing the
|
||||
//! The [`Now`] trait describes how to get an [`Instant`] representing the
|
||||
//! current moment in time. [`SystemNow`] is the default implementation, where
|
||||
//! [`Now::now`] is implemented by calling `Instant::now`.
|
||||
//! [`Now::now`] is implemented by calling [`Instant::now`].
|
||||
//!
|
||||
//! [`Timer`] is generic over [`Now`]. This allows the source of time to be
|
||||
//! customized. This ability is especially useful in tests and any environment
|
||||
//! where determinism is necessary.
|
||||
//!
|
||||
//! Note, when using the Tokio runtime, the `Timer` does not need to be manually
|
||||
//! setup as the runtime comes pre-configured with a `Timer` instance.
|
||||
//! Note, when using the Tokio runtime, the [`Timer`] does not need to be manually
|
||||
//! setup as the runtime comes pre-configured with a [`Timer`] instance.
|
||||
//!
|
||||
//! [`Timer`]: struct.Timer.html
|
||||
//! [`Handle`]: struct.Handle.html
|
||||
//! [`Delay`]: ../struct.Delay.html
|
||||
//! [`Now`]: trait.Now.html
|
||||
//! [`Now::now`]: trait.Now.html#method.now
|
||||
//! [`Now`]: ../clock/trait.Now.html
|
||||
//! [`Now::now`]: ../clock/trait.Now.html#method.now
|
||||
//! [`SystemNow`]: struct.SystemNow.html
|
||||
//! [`Instant`]: https://doc.rust-lang.org/std/time/struct.Instant.html
|
||||
//! [`Instant::now`]: https://doc.rust-lang.org/std/time/struct.Instant.html#method.now
|
||||
|
||||
// This allows the usage of the old `Now` trait.
|
||||
#![allow(deprecated)]
|
||||
|
||||
Reference in New Issue
Block a user