Skip to main content

ProgressFn

Type Alias ProgressFn 

Source
pub type ProgressFn = Arc<dyn Fn(u64, u64) + Send + Sync>;
Expand description

Called with (done, total), both in base pairs.

Fn rather than FnMut, and behind an Arc: a reader’s methods take &self, and several workers call this at once.

Aliased Type§

pub struct ProgressFn { /* private fields */ }