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

Create a new wheel

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!

Determine if and how many ticks can be skipped

Trait Implementations

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.