Skip to main content

TimerWheel

Type Alias TimerWheel 

Source
pub type TimerWheel = Wheel<Box<dyn Handler<Instant>>>;
Expand description

Type alias for a timer wheel using boxed handlers (heap-allocated).

Box<dyn Handler<Instant>> — each timer entry is a type-erased handler that receives the poll timestamp as its event.

Aliased Type§

pub struct TimerWheel { /* private fields */ }