Progress

Trait Progress 

Source
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;
    }
}

Required Methods§

Source

fn apply(&self, current: &mut u32)

Apply the progress.

Implementors§