pub struct ThrottledReporter<R: ProgressReporter> { /* private fields */ }Expand description
A progress reporter that throttles ItemProcessed and BatchProcessed
events to at most one per interval_ms milliseconds.
Phase start/complete and error events are always forwarded immediately.
Implementations§
Source§impl<R: ProgressReporter> ThrottledReporter<R>
impl<R: ProgressReporter> ThrottledReporter<R>
Trait Implementations§
Source§impl<R: ProgressReporter> ProgressReporter for ThrottledReporter<R>
impl<R: ProgressReporter> ProgressReporter for ThrottledReporter<R>
Source§fn on_event(&self, event: &ProgressEvent<'_>)
fn on_event(&self, event: &ProgressEvent<'_>)
Called when a progress event occurs.
Source§fn is_cancelled(&self) -> bool
fn is_cancelled(&self) -> bool
Returns
true if the operation should be cancelled. Read moreAuto Trait Implementations§
impl<R> !Freeze for ThrottledReporter<R>
impl<R> RefUnwindSafe for ThrottledReporter<R>where
R: RefUnwindSafe,
impl<R> Send for ThrottledReporter<R>
impl<R> Sync for ThrottledReporter<R>
impl<R> Unpin for ThrottledReporter<R>where
R: Unpin,
impl<R> UnsafeUnpin for ThrottledReporter<R>where
R: UnsafeUnpin,
impl<R> UnwindSafe for ThrottledReporter<R>where
R: 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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more