Crate tm_wheel

Source
Expand description

§Primitive Timer Driver Implementation

This is timer driver implementation. The original idea came from tokio’s hierarchical hashed timing wheel, offering O(1) insertion/removal and O(p) (where p is number of timing wheel hierarchies; i.e. page) timeout complexity.

§Usage

todo

§Features

  • std(default): Provides slab based default implementation.

Structs§

TimerDriverBase
Basic timer driver with manually configurable page size / slab allocator.
TimerDriverDrainIter
TimerHandle
Handle to a created timer.

Traits§

SlabAllocator
A backend allocator for TimerDriverBase.

Type Aliases§

TimeOffset
A type alias to represent delta time between two time points.
TimePoint
A type alias for internal time point representation. It can be any unsigned interger type, where the representation is arbitrary.
TimerDriver