Reporter

Trait Reporter 

Source
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§

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, id: usize)

Callback to invoke when a repository checkout completes.

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, id: usize, inc: 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, id: usize)

Callback to invoke when a download is complete.

Implementors§