Skip to main content

PrepareReporter

Trait PrepareReporter 

Source
pub trait PrepareReporter: Send + Sync {
    // Required methods
    fn on_progress(&self, dist: &CachedDist);
    fn on_complete(&self);
    fn on_download_start(&self, name: &PackageName, size: Option<u64>) -> usize;
    fn on_download_progress(&self, index: usize, bytes: u64);
    fn on_download_complete(&self, name: &PackageName, index: usize);
    fn on_build_start(&self, source: &BuildableSource<'_>) -> usize;
    fn on_build_complete(&self, source: &BuildableSource<'_>, id: usize);
    fn on_checkout_start(&self, url: &DisplaySafeUrl, rev: &str) -> usize;
    fn on_checkout_complete(
        &self,
        url: &DisplaySafeUrl,
        rev: &str,
        index: usize,
    );
}

Required Methods§

Source

fn on_progress(&self, dist: &CachedDist)

Callback to invoke when a wheel is unzipped. This implies that the wheel was downloaded and, if necessary, built.

Source

fn on_complete(&self)

Callback to invoke when the operation is complete.

Source

fn on_download_start(&self, name: &PackageName, size: Option<u64>) -> usize

Callback to invoke when a download is kicked off.

Source

fn on_download_progress(&self, index: usize, bytes: u64)

Callback to invoke when a download makes progress (i.e. some number of bytes are downloaded).

Source

fn on_download_complete(&self, name: &PackageName, index: usize)

Callback to invoke when a download is complete.

Source

fn on_build_start(&self, source: &BuildableSource<'_>) -> usize

Callback to invoke when a source distribution build is kicked off.

Source

fn on_build_complete(&self, source: &BuildableSource<'_>, id: usize)

Callback to invoke when a source distribution build is complete.

Source

fn on_checkout_start(&self, url: &DisplaySafeUrl, rev: &str) -> usize

Callback to invoke when a repository checkout begins.

Source

fn on_checkout_complete(&self, url: &DisplaySafeUrl, rev: &str, index: usize)

Callback to invoke when a repository checkout completes.

Implementors§