pub struct MultiReporter { /* private fields */ }Expand description
Forwards events to multiple reporters.
Implementations§
Source§impl MultiReporter
impl MultiReporter
Sourcepub fn new(reporters: Vec<Arc<dyn ProgressReporter>>) -> Self
pub fn new(reporters: Vec<Arc<dyn ProgressReporter>>) -> Self
Create a new multi-reporter.
Trait Implementations§
Source§impl ProgressReporter for MultiReporter
impl ProgressReporter for MultiReporter
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 !RefUnwindSafe for MultiReporter
impl !UnwindSafe for MultiReporter
impl Freeze for MultiReporter
impl Send for MultiReporter
impl Sync for MultiReporter
impl Unpin for MultiReporter
impl UnsafeUnpin for MultiReporter
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