pub struct AptAcquireProgress { /* private fields */ }
Expand description
AptAcquireProgress is the default struct for the update method on the cache.
This struct mimics the output of apt update
.
Implementations§
Trait Implementations§
Source§impl Debug for AptAcquireProgress
impl Debug for AptAcquireProgress
Source§impl Default for AptAcquireProgress
impl Default for AptAcquireProgress
Source§fn default() -> AptAcquireProgress
fn default() -> AptAcquireProgress
Source§impl DynAcquireProgress for AptAcquireProgress
impl DynAcquireProgress for AptAcquireProgress
Source§fn pulse_interval(&self) -> usize
fn pulse_interval(&self) -> usize
Used to send the pulse interval to the apt progress class.
Pulse Interval is in microseconds.
Example: 1 second = 1000000 microseconds.
Apt default is 500000 microseconds or 0.5 seconds.
The higher the number, the less frequent pulse updates will be.
Pulse Interval set to 0 assumes the apt defaults.
Source§fn hit(&mut self, item: &ItemDesc)
fn hit(&mut self, item: &ItemDesc)
Called when an item is confirmed to be up-to-date.
Prints out the short description and the expected size.
Source§fn fetch(&mut self, item: &ItemDesc)
fn fetch(&mut self, item: &ItemDesc)
Called when an Item has started to download
Prints out the short description and the expected size.
Source§fn done(&mut self, _item: &ItemDesc)
fn done(&mut self, _item: &ItemDesc)
Called when an item is successfully and completely fetched.
We don’t print anything here to remain consistent with apt.
Source§fn start(&mut self)
fn start(&mut self)
Called when progress has started.
Start does not pass information into the method.
We do not print anything here to remain consistent with apt. lastline length is set to 0 to ensure consistency when progress begins.
Source§fn stop(&mut self, owner: &AcqTextStatus)
fn stop(&mut self, owner: &AcqTextStatus)
Called when progress has finished.
Stop does not pass information into the method.
prints out the bytes downloaded and the overall average line speed.
Source§fn fail(&mut self, item: &ItemDesc)
fn fail(&mut self, item: &ItemDesc)
Called when an Item fails to download.
Print out the ErrorText for the Item.
Source§fn pulse(&mut self, status: &AcqTextStatus, owner: &PkgAcquire)
fn pulse(&mut self, status: &AcqTextStatus, owner: &PkgAcquire)
Called periodically to provide the overall progress information
Draws the current progress. Each line has an overall percent meter and a per active item status meter along with an overall bandwidth and ETA indicator.