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§
Sourcefn on_progress(&self, dist: &CachedDist)
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.
Sourcefn on_complete(&self)
fn on_complete(&self)
Callback to invoke when the operation is complete.
Sourcefn on_download_start(&self, name: &PackageName, size: Option<u64>) -> usize
fn on_download_start(&self, name: &PackageName, size: Option<u64>) -> usize
Callback to invoke when a download is kicked off.
Sourcefn on_download_progress(&self, index: usize, bytes: u64)
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).
Sourcefn on_download_complete(&self, name: &PackageName, index: usize)
fn on_download_complete(&self, name: &PackageName, index: usize)
Callback to invoke when a download is complete.
Sourcefn on_build_start(&self, source: &BuildableSource<'_>) -> usize
fn on_build_start(&self, source: &BuildableSource<'_>) -> usize
Callback to invoke when a source distribution build is kicked off.
Sourcefn on_build_complete(&self, source: &BuildableSource<'_>, id: usize)
fn on_build_complete(&self, source: &BuildableSource<'_>, id: usize)
Callback to invoke when a source distribution build is complete.
Sourcefn on_checkout_start(&self, url: &DisplaySafeUrl, rev: &str) -> usize
fn on_checkout_start(&self, url: &DisplaySafeUrl, rev: &str) -> usize
Callback to invoke when a repository checkout begins.
Sourcefn on_checkout_complete(&self, url: &DisplaySafeUrl, rev: &str, index: usize)
fn on_checkout_complete(&self, url: &DisplaySafeUrl, rev: &str, index: usize)
Callback to invoke when a repository checkout completes.