pub struct BoundedWheelBuilder { /* private fields */ }Expand description
Terminal builder for a bounded timer wheel.
Created via WheelBuilder::bounded. The only method is .build().
Implementations§
Source§impl BoundedWheelBuilder
impl BoundedWheelBuilder
Sourcepub fn build<T: 'static>(self, now: Instant) -> BoundedWheel<T>
pub fn build<T: 'static>(self, now: Instant) -> BoundedWheel<T>
Builds the bounded 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 BoundedWheelBuilder
impl RefUnwindSafe for BoundedWheelBuilder
impl Send for BoundedWheelBuilder
impl Sync for BoundedWheelBuilder
impl Unpin for BoundedWheelBuilder
impl UnsafeUnpin for BoundedWheelBuilder
impl UnwindSafe for BoundedWheelBuilder
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