Trait ProgressHandler

Source
pub trait ProgressHandler {
    // Provided methods
    fn init(&mut self, steps: i64) { ... }
    fn inc(&mut self) { ... }
    fn finish(&mut self) { ... }
}
Expand description

Use this trait if you want more detailed information about the progress of the align operation (which might take some seconds).

Provided Methods§

Source

fn init(&mut self, steps: i64)

Will be called one time before inc() is called. steps is the number of times inc() will be called.

The number of steps is around the number of lines in the “incorrect” subtitle. Be aware that this number can be zero!

Source

fn inc(&mut self)

We made (small) progress!

Source

fn finish(&mut self)

Will be called after the last inc(), when inc() was called steps times.

Implementors§