pub struct NullProgress;Expand description
A ProgressSink that discards every update. The default for tests,
grit-simple, and any call site that does not want progress output.
Trait Implementations§
Source§impl Clone for NullProgress
impl Clone for NullProgress
Source§fn clone(&self) -> NullProgress
fn clone(&self) -> NullProgress
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for NullProgress
Source§impl Debug for NullProgress
impl Debug for NullProgress
Source§impl Default for NullProgress
impl Default for NullProgress
Source§fn default() -> NullProgress
fn default() -> NullProgress
Returns the “default value” for a type. Read more
Source§impl ProgressSink for NullProgress
impl ProgressSink for NullProgress
Source§fn start(&mut self, label: &str, total: Option<u64>)
fn start(&mut self, label: &str, total: Option<u64>)
Begin a new progress phase labelled
label, optionally with a known
total count of units (e.g. objects). None means the total is unknown.Source§fn set(&mut self, current: u64)
fn set(&mut self, current: u64)
Set the absolute progress of the current phase to
current units.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