pub struct NullProgress;Expand description
No-op progress callback (all defaults).
Trait Implementations§
Source§impl ProgressCallback for NullProgress
impl ProgressCallback for NullProgress
Source§fn on_source_start(&self, _index: usize, _name: &str, _max_items: Option<usize>)
fn on_source_start(&self, _index: usize, _name: &str, _max_items: Option<usize>)
Called when a source starts streaming.
Source§fn on_source_progress(&self, _index: usize, _count: usize)
fn on_source_progress(&self, _index: usize, _count: usize)
Called after a source emits or resumes item progress.
Source§fn on_source_done(&self, _index: usize, _name: &str, _stats: &SourceStats)
fn on_source_done(&self, _index: usize, _name: &str, _stats: &SourceStats)
Called when a source finishes successfully or partially.
Source§fn on_source_cached(&self, _index: usize, _name: &str, _stats: &SourceStats)
fn on_source_cached(&self, _index: usize, _name: &str, _stats: &SourceStats)
Called when a source is skipped from manifest cache.
Source§fn on_source_error(&self, _index: usize, _name: &str, _error: &str)
fn on_source_error(&self, _index: usize, _name: &str, _error: &str)
Called when source processing fails.
Source§fn on_publish_start(&self, _target: &str)
fn on_publish_start(&self, _target: &str)
Called before publishing to a target.
Source§fn on_publish_done(&self, _target: &str, _result: &PublishResult)
fn on_publish_done(&self, _target: &str, _result: &PublishResult)
Called after a target publishes successfully.
Source§fn on_publish_error(&self, _target: &str, _error: &str)
fn on_publish_error(&self, _target: &str, _error: &str)
Called when target publishing fails.
Auto Trait Implementations§
impl Freeze for NullProgress
impl RefUnwindSafe for NullProgress
impl Send for NullProgress
impl Sync for NullProgress
impl Unpin for NullProgress
impl UnsafeUnpin for NullProgress
impl UnwindSafe for NullProgress
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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