pub struct NullProgress;Expand description
A ProgressSink that discards every update. The default for tests,
grit-cli, and any call site that does not want progress output.
Trait Implementations§
Source§impl Clone for NullProgress
impl Clone for NullProgress
impl Copy for NullProgress
Source§impl Debug for NullProgress
impl Debug for NullProgress
Source§impl Default for NullProgress
impl Default for NullProgress
Source§impl ProgressSink for NullProgress
impl ProgressSink for NullProgress
Source§fn start(&mut self, phase: ProgressPhase, total: Option<u64>)
fn start(&mut self, phase: ProgressPhase, total: Option<u64>)
Begin a new progress
phase, optionally with a known total count of
ProgressPhase::default_unit units for that phase. Read moreSource§fn start_with_unit(
&mut self,
phase: ProgressPhase,
unit: ProgressUnit,
total: Option<u64>,
)
fn start_with_unit( &mut self, phase: ProgressPhase, unit: ProgressUnit, total: Option<u64>, )
Begin a phase with an explicit count unit (for example
ProgressUnit::Bytes
when streaming a pack whose size is known in bytes). Read moreSource§fn set(&mut self, current: u64)
fn set(&mut self, current: u64)
Set the absolute progress of the current phase to
current units.Source§fn should_cancel(&self) -> bool
fn should_cancel(&self) -> bool
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