pub struct NoProgress;Expand description
A Progress / ProgressSink that discards everything.
Trait Implementations§
Source§impl Progress for NoProgress
impl Progress for NoProgress
Source§fn message(&mut self, _bytes: &[u8])
fn message(&mut self, _bytes: &[u8])
Receive a chunk of progress bytes from side-band channel 2.
Source§fn remote_sideband_progress(&self) -> bool
fn remote_sideband_progress(&self) -> bool
When true, fetch omits
no-progress so the remote may emit channel-2 progress.Source§fn wants_received_objects(&self) -> bool
fn wants_received_objects(&self) -> bool
When true, a pack being received is also counted in objects and
reported through
Progress::received_objects. Read moreSource§fn received_objects(&mut self, _counts: ReceivedObjects)
fn received_objects(&mut self, _counts: ReceivedObjects)
Objects received so far in the pack being streamed in, reported during
the
ReceivingObjects
phase when Progress::wants_received_objects is true. Counts may lag
the bytes reported through ProgressSink::inc slightly.Source§impl ProgressSink for NoProgress
impl ProgressSink for NoProgress
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 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