pub struct LoggingReporter { /* private fields */ }Expand description
A progress reporter that logs events to a Vec for later inspection.
Useful for testing and batch processing where you want to review progress after the fact.
Implementations§
Trait Implementations§
Source§impl Debug for LoggingReporter
impl Debug for LoggingReporter
Source§impl Default for LoggingReporter
impl Default for LoggingReporter
Source§fn default() -> LoggingReporter
fn default() -> LoggingReporter
Returns the “default value” for a type. Read more
Source§impl ProgressReporter for LoggingReporter
impl ProgressReporter for LoggingReporter
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 !Freeze for LoggingReporter
impl RefUnwindSafe for LoggingReporter
impl Send for LoggingReporter
impl Sync for LoggingReporter
impl Unpin for LoggingReporter
impl UnsafeUnpin for LoggingReporter
impl UnwindSafe for LoggingReporter
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