Skip to main content

DynAcquireProgress

Trait DynAcquireProgress 

Source
pub trait DynAcquireProgress {
    // Required methods
    fn pulse_interval(&self) -> usize;
    fn hit(&mut self, item: &ItemDesc);
    fn fetch(&mut self, item: &ItemDesc);
    fn fail(&mut self, item: &ItemDesc);
    fn pulse(&mut self, status: &AcqTextStatus, owner: &PkgAcquire);
    fn done(&mut self, item: &ItemDesc);
    fn start(&mut self);
    fn stop(&mut self, status: &AcqTextStatus);

    // Provided method
    fn release_info_changes(&mut self, info: ReleaseInfoChanges) -> bool { ... }
}
Expand description

Customize the output shown during file downloads.

Required Methods§

Source

fn pulse_interval(&self) -> usize

Called on c++ to set the pulse interval.

Source

fn hit(&mut self, item: &ItemDesc)

Called when an item is confirmed to be up-to-date.

Source

fn fetch(&mut self, item: &ItemDesc)

Called when an Item has started to download

Source

fn fail(&mut self, item: &ItemDesc)

Called when an Item fails to download

Source

fn pulse(&mut self, status: &AcqTextStatus, owner: &PkgAcquire)

Called periodically to provide the overall progress information

Source

fn done(&mut self, item: &ItemDesc)

Called when an item is successfully and completely fetched.

Source

fn start(&mut self)

Called when progress has started

Source

fn stop(&mut self, status: &AcqTextStatus)

Called when progress has finished

Provided Methods§

Source

fn release_info_changes(&mut self, info: ReleaseInfoChanges) -> bool

Called when a repository changes information from its Release file.

Returning true accepts every change. The default accepts changes that APT considers informational or that were allowed through APT configuration, and rejects changes that require explicit confirmation.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§