pub struct ApproximateSlidingWindowBuilderWithTime<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> ApproximateSlidingWindowBuilderWithTime<T>
impl<T: TimeSource> ApproximateSlidingWindowBuilderWithTime<T>
Sourcepub fn with_precision<P: Precision>(
self,
) -> ConfiguredApproximateSlidingWindowBuilder<P, T>
pub fn with_precision<P: Precision>( self, ) -> ConfiguredApproximateSlidingWindowBuilder<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 ApproximateSlidingWindow.
§Type Parameters
P- The precision type to use for time calculations
§Returns
A fully configured builder ready to build the ApproximateSlidingWindow
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for ApproximateSlidingWindowBuilderWithTime<T>where
T: Freeze,
impl<T> RefUnwindSafe for ApproximateSlidingWindowBuilderWithTime<T>where
T: RefUnwindSafe,
impl<T> Send for ApproximateSlidingWindowBuilderWithTime<T>where
T: Send,
impl<T> Sync for ApproximateSlidingWindowBuilderWithTime<T>where
T: Sync,
impl<T> Unpin for ApproximateSlidingWindowBuilderWithTime<T>where
T: Unpin,
impl<T> UnwindSafe for ApproximateSlidingWindowBuilderWithTime<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