pub struct CallbackReporter<F>{ /* private fields */ }Expand description
A progress reporter backed by a user-supplied closure.
Implementations§
Trait Implementations§
Source§impl<F> ProgressReporter for CallbackReporter<F>
impl<F> ProgressReporter for CallbackReporter<F>
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<F> !Freeze for CallbackReporter<F>
impl<F> RefUnwindSafe for CallbackReporter<F>where
F: RefUnwindSafe,
impl<F> Send for CallbackReporter<F>
impl<F> Sync for CallbackReporter<F>
impl<F> Unpin for CallbackReporter<F>where
F: Unpin,
impl<F> UnsafeUnpin for CallbackReporter<F>where
F: UnsafeUnpin,
impl<F> UnwindSafe for CallbackReporter<F>where
F: 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