pub struct NullReporter;Expand description
A no-op progress reporter that discards all events.
This is the default when no progress reporting is needed.
Implementations§
Source§impl NullReporter
impl NullReporter
Trait Implementations§
Source§impl Clone for NullReporter
impl Clone for NullReporter
Source§fn clone(&self) -> NullReporter
fn clone(&self) -> NullReporter
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NullReporter
impl Debug for NullReporter
Source§impl Default for NullReporter
impl Default for NullReporter
Source§fn default() -> NullReporter
fn default() -> NullReporter
Returns the “default value” for a type. Read more
Source§impl ProgressReporter for NullReporter
impl ProgressReporter for NullReporter
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 moreimpl Copy for NullReporter
Auto Trait Implementations§
impl Freeze for NullReporter
impl RefUnwindSafe for NullReporter
impl Send for NullReporter
impl Sync for NullReporter
impl Unpin for NullReporter
impl UnsafeUnpin for NullReporter
impl UnwindSafe for NullReporter
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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