pub trait Reporter: Send + Sync {
// Required methods
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, id: usize);
fn on_download_start(&self, name: &PackageName, size: Option<u64>) -> usize;
fn on_download_progress(&self, id: usize, inc: u64);
fn on_download_complete(&self, name: &PackageName, id: usize);
}Required Methods§
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, id: usize)
fn on_checkout_complete(&self, url: &DisplaySafeUrl, rev: &str, id: usize)
Callback to invoke when a repository checkout completes.
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, id: usize, inc: u64)
fn on_download_progress(&self, id: usize, inc: u64)
Callback to invoke when a download makes progress (i.e. some number of bytes are downloaded).
Sourcefn on_download_complete(&self, name: &PackageName, id: usize)
fn on_download_complete(&self, name: &PackageName, id: usize)
Callback to invoke when a download is complete.