pub struct UnboundedWheelBuilder { /* private fields */ }Expand description
Terminal builder for an unbounded timer wheel.
Created via WheelBuilder::unbounded. The only method is .build().
Implementations§
Source§impl UnboundedWheelBuilder
impl UnboundedWheelBuilder
Sourcepub fn build<T>(self, now: Instant) -> TimerWheel<T>where
T: 'static,
pub fn build<T>(self, now: Instant) -> TimerWheel<T>where
T: 'static,
Builds the unbounded timer wheel.
§Panics
Panics if the configuration is invalid (non-power-of-2 slots, zero levels, zero clk_shift, or zero tick duration).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for UnboundedWheelBuilder
impl RefUnwindSafe for UnboundedWheelBuilder
impl Send for UnboundedWheelBuilder
impl Sync for UnboundedWheelBuilder
impl Unpin for UnboundedWheelBuilder
impl UnsafeUnpin for UnboundedWheelBuilder
impl UnwindSafe for UnboundedWheelBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more