Skip to main content

ProgressFn

Type Alias ProgressFn 

Source
pub type ProgressFn = Arc<dyn Fn(usize, usize, &str) + Send + Sync + 'static>;
Expand description

Progress callback. Arc so it can be cloned across async boundaries and satisfy the Clone + 'static bounds of install_vanilla / download_batch.

Aliased Typeยง

pub struct ProgressFn { /* private fields */ }