mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-09-06 00:00:10 +02:00
time: update outdated docs of Wheel (#7749)
This commit is contained in:
@@ -10,15 +10,17 @@ use std::fmt::Debug;
|
|||||||
|
|
||||||
/// Timing wheel implementation.
|
/// Timing wheel implementation.
|
||||||
///
|
///
|
||||||
/// This type provides the hashed timing wheel implementation that backs `Timer`
|
/// This type provides the hashed timing wheel implementation that backs
|
||||||
/// and `DelayQueue`.
|
/// [`DelayQueue`].
|
||||||
///
|
///
|
||||||
/// The structure is generic over `T: Stack`. This allows handling timeout data
|
/// The structure is generic over `T: Stack`. This allows handling timeout data
|
||||||
/// being stored on the heap or in a slab. In order to support the latter case,
|
/// being stored on the heap or in a slab. In order to support the latter case,
|
||||||
/// the slab must be passed into each function allowing the implementation to
|
/// the slab must be passed into each function allowing the implementation to
|
||||||
/// lookup timer entries.
|
/// lookup timer entries.
|
||||||
///
|
///
|
||||||
/// See `Timer` documentation for some implementation notes.
|
/// See `Driver` documentation for some implementation notes.
|
||||||
|
///
|
||||||
|
/// [`DelayQueue`]: crate::time::DelayQueue
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
pub(crate) struct Wheel<T> {
|
pub(crate) struct Wheel<T> {
|
||||||
/// The number of milliseconds elapsed since the wheel started.
|
/// The number of milliseconds elapsed since the wheel started.
|
||||||
|
|||||||
@@ -12,15 +12,12 @@ use super::EntryList;
|
|||||||
|
|
||||||
/// Timing wheel implementation.
|
/// Timing wheel implementation.
|
||||||
///
|
///
|
||||||
/// This type provides the hashed timing wheel implementation that backs `Timer`
|
/// This type provides the hashed timing wheel implementation that backs
|
||||||
/// and `DelayQueue`.
|
/// [`Driver`].
|
||||||
///
|
///
|
||||||
/// The structure is generic over `T: Stack`. This allows handling timeout data
|
/// See [`Driver`] documentation for some implementation notes.
|
||||||
/// being stored on the heap or in a slab. In order to support the latter case,
|
|
||||||
/// the slab must be passed into each function allowing the implementation to
|
|
||||||
/// lookup timer entries.
|
|
||||||
///
|
///
|
||||||
/// See `Timer` documentation for some implementation notes.
|
/// [`Driver`]: crate::runtime::time::Driver
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
pub(crate) struct Wheel {
|
pub(crate) struct Wheel {
|
||||||
/// The number of milliseconds elapsed since the wheel started.
|
/// The number of milliseconds elapsed since the wheel started.
|
||||||
|
|||||||
@@ -7,17 +7,11 @@ use super::{EntryHandle, EntryList, WakeQueue};
|
|||||||
|
|
||||||
use std::array;
|
use std::array;
|
||||||
|
|
||||||
/// Timing wheel implementation.
|
/// Hashed timing wheel implementation.
|
||||||
///
|
///
|
||||||
/// This type provides the hashed timing wheel implementation that backs `Timer`
|
/// See [`Driver`] documentation for some implementation notes.
|
||||||
/// and `DelayQueue`.
|
|
||||||
///
|
///
|
||||||
/// The structure is generic over `T: Stack`. This allows handling timeout data
|
/// [`Driver`]: crate::runtime::time::Driver
|
||||||
/// being stored on the heap or in a slab. In order to support the latter case,
|
|
||||||
/// the slab must be passed into each function allowing the implementation to
|
|
||||||
/// lookup timer entries.
|
|
||||||
///
|
|
||||||
/// See `Timer` documentation for some implementation notes.
|
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
pub(crate) struct Wheel {
|
pub(crate) struct Wheel {
|
||||||
/// The number of milliseconds elapsed since the wheel started.
|
/// The number of milliseconds elapsed since the wheel started.
|
||||||
|
|||||||
Reference in New Issue
Block a user