Struct queen::timer::wheel::Wheel [−][src]
pub struct Wheel<E> where
E: Debug, { /* fields omitted */ }
Expand description
An implementation of four-level byte-sized wheel
Implementations
Described how many ticks are left before the timer has wrapped around completely
Produces a 32-bit timestamp including the current index of every wheel
Insert a new timeout into the wheel to be returned after delay
ticks
Move the wheel forward by a single unit
Returns a list of all timers that expire during this tick.
Skip a certain amount
of units
No timers will be executed for the skipped time. Only use this after determining that it’s actually valid with can_skip!