Skip to main content

CloneProgress

Trait CloneProgress 

Source
pub trait CloneProgress: Send + Sync {
    // Required methods
    fn on_start(&self, repo: &OwnedRepo, index: usize, total: usize);
    fn on_complete(&self, repo: &OwnedRepo, index: usize, total: usize);
    fn on_error(
        &self,
        repo: &OwnedRepo,
        error: &str,
        index: usize,
        total: usize,
    );
    fn on_skip(
        &self,
        repo: &OwnedRepo,
        reason: &str,
        index: usize,
        total: usize,
    );
}
Expand description

Progress callback for clone operations.

Required Methods§

Source

fn on_start(&self, repo: &OwnedRepo, index: usize, total: usize)

Called when a clone starts.

Source

fn on_complete(&self, repo: &OwnedRepo, index: usize, total: usize)

Called when a clone completes successfully.

Source

fn on_error(&self, repo: &OwnedRepo, error: &str, index: usize, total: usize)

Called when a clone fails.

Source

fn on_skip(&self, repo: &OwnedRepo, reason: &str, index: usize, total: usize)

Called when a clone is skipped.

Implementors§