pub struct FixedWindowCounterBuilderWithTime<T: TimeSource> { /* private fields */ }Expand description
Builder with time source configured.
This intermediate builder is created after calling with_time() and allows
setting the precision type.
Implementations§
Source§impl<T: TimeSource> FixedWindowCounterBuilderWithTime<T>
impl<T: TimeSource> FixedWindowCounterBuilderWithTime<T>
Sourcepub fn with_precision<P: Precision>(
self,
) -> ConfiguredFixedWindowCounterBuilder<P, T>
pub fn with_precision<P: Precision>( self, ) -> ConfiguredFixedWindowCounterBuilder<P, T>
Sets the precision type for time calculations.
This method configures the precision type and returns a fully configured builder ready to build the FixedWindowCounter.
§Type Parameters
P- The precision type to use for time calculations
§Returns
A fully configured builder ready to build the FixedWindowCounter
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for FixedWindowCounterBuilderWithTime<T>where
T: Freeze,
impl<T> RefUnwindSafe for FixedWindowCounterBuilderWithTime<T>where
T: RefUnwindSafe,
impl<T> Send for FixedWindowCounterBuilderWithTime<T>where
T: Send,
impl<T> Sync for FixedWindowCounterBuilderWithTime<T>where
T: Sync,
impl<T> Unpin for FixedWindowCounterBuilderWithTime<T>where
T: Unpin,
impl<T> UnwindSafe for FixedWindowCounterBuilderWithTime<T>where
T: UnwindSafe,
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