pub struct NoProgress;Expand description
The silent default: reports nothing. Suitable for library use and for the
non-interactive / --quiet / machine-output CLI paths.
Trait Implementations§
Source§impl Clone for NoProgress
impl Clone for NoProgress
impl Copy for NoProgress
Source§impl Debug for NoProgress
impl Debug for NoProgress
Source§impl Default for NoProgress
impl Default for NoProgress
Source§impl Progress for NoProgress
impl Progress for NoProgress
Source§fn on_start(&self, dists: usize)
fn on_start(&self, dists: usize)
The downloader is about to fetch
dists archives (cache hits
included). Fires once, before any other callback, so a bar can set its
length.Source§fn on_download(&self, package: &str, outcome: DistOutcome)
fn on_download(&self, package: &str, outcome: DistOutcome)
One dist finished its download phase — either freshly fetched or a
cache hit (see
DistOutcome). Fires once per package.Source§fn on_extract(&self, package: &str)
fn on_extract(&self, package: &str)
One dist finished extracting into its
vendor/ destination. Fires
once per package, after every download has completed.Source§fn on_retry(&self, package: &str, attempt: u32, error: &Report)
fn on_retry(&self, package: &str, attempt: u32, error: &Report)
A fetch attempt for
package failed and is about to be retried.
attempt counts the failures so far (1 on the first retry). Fired by
fetchers that retry, such as crate::ReqwestFetcher; a final
failure is returned as an error instead.Auto Trait Implementations§
impl Forget for NoProgress
impl Freeze for NoProgress
impl Move for NoProgress
impl RefUnwindSafe for NoProgress
impl Send for NoProgress
impl Sync for NoProgress
impl Unpin for NoProgress
impl UnsafeUnpin 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> 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