pub trait Progress: Send {
// Required method
fn apply(&self, current: &mut u32);
}Expand description
It is used to handle to execution progress.
§Usage
struct UnitProgress;
impl Progress for UnitProgress {
fn apply(&self, current: &mut u32) {
*current += 1;
}
}