pub struct NoProgress;Expand description
A progress reporter that does nothing (null object pattern).
Trait Implementations§
Source§impl Clone for NoProgress
impl Clone for NoProgress
Source§fn clone(&self) -> NoProgress
fn clone(&self) -> NoProgress
Returns a duplicate of the value. Read more
1.0.0 · 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 NoProgress
impl Debug for NoProgress
Source§impl Default for NoProgress
impl Default for NoProgress
Source§fn default() -> NoProgress
fn default() -> NoProgress
Returns the “default value” for a type. Read more
Source§impl ProgressReporter for NoProgress
impl ProgressReporter for NoProgress
Source§fn on_total(&mut self, total_bytes: u64)
fn on_total(&mut self, total_bytes: u64)
Called at the start with the total bytes to process. Read more
Source§fn on_progress(&mut self, bytes_processed: u64, total_bytes: u64) -> bool
fn on_progress(&mut self, bytes_processed: u64, total_bytes: u64) -> bool
Called periodically during operation. Read more
Source§fn on_ratio(&mut self, input_bytes: u64, output_bytes: u64)
fn on_ratio(&mut self, input_bytes: u64, output_bytes: u64)
Called when compression/decompression ratio changes significantly. Read more
Source§fn on_entry_start(&mut self, entry_name: &str, size: u64)
fn on_entry_start(&mut self, entry_name: &str, size: u64)
Called when starting to process a new entry. Read more
Source§fn on_entry_complete(&mut self, entry_name: &str, success: bool)
fn on_entry_complete(&mut self, entry_name: &str, success: bool)
Called when entry processing completes. Read more
Source§fn on_password_needed(&mut self) -> Option<String>
fn on_password_needed(&mut self) -> Option<String>
Called when a password is needed. Read more
Source§fn on_warning(&mut self, message: &str)
fn on_warning(&mut self, message: &str)
Called on any warning during processing.
Source§fn should_cancel(&self) -> bool
fn should_cancel(&self) -> bool
Checks if cancellation has been requested. Read more
Auto Trait Implementations§
impl Freeze for NoProgress
impl RefUnwindSafe for NoProgress
impl Send for NoProgress
impl Sync for NoProgress
impl Unpin for NoProgress
impl UnwindSafe for NoProgress
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