pub struct NullProgressReporter;
Expand description
A progress reporter which does nothing.
Trait Implementations§
Source§impl UnzipProgressReporter for NullProgressReporter
impl UnzipProgressReporter for NullProgressReporter
Source§fn extraction_starting(&self, _display_name: &str)
fn extraction_starting(&self, _display_name: &str)
Extraction has begun on a file.
Source§fn extraction_finished(&self, _display_name: &str)
fn extraction_finished(&self, _display_name: &str)
Extraction has finished on a file.
Source§fn total_bytes_expected(&self, _expected: u64)
fn total_bytes_expected(&self, _expected: u64)
The total number of compressed bytes we expect to extract.
Source§fn bytes_extracted(&self, _count: u64)
fn bytes_extracted(&self, _count: u64)
Some bytes of a file have been decompressed. This is probably
the best way to display an overall progress bar. This should eventually
add up to the number you’re given using
total_bytes_expected
.
The ‘count’ parameter is not a running total - you must add up
each call to this function into the running total.
It’s a bit unfortunate that we give compressed bytes rather than
uncompressed bytes, but currently we can’t calculate uncompressed
bytes without downloading the whole zip file first, which rather
defeats the point.Auto Trait Implementations§
impl Freeze for NullProgressReporter
impl RefUnwindSafe for NullProgressReporter
impl Send for NullProgressReporter
impl Sync for NullProgressReporter
impl Unpin for NullProgressReporter
impl UnwindSafe for NullProgressReporter
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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