pub type BoundedWheel<T> = TimerWheel<T, Slab<WheelEntry<T>>>;Expand description
A timer wheel backed by a fixed-capacity slab.
Aliased Type§
pub struct BoundedWheel<T> { /* private fields */ }Implementations§
Source§impl<T: 'static> BoundedWheel<T>
impl<T: 'static> BoundedWheel<T>
Sourcepub fn bounded(capacity: usize, now: Instant) -> Self
pub fn bounded(capacity: usize, now: Instant) -> Self
Creates a bounded timer wheel with default configuration.
now fixes the reference epoch — pass one monotone clock source
(e.g. Instant::now()) here and to every schedule/poll. For custom
configuration, use WheelBuilder.