[][src]Trait alass_cli::video_decoder::ProgressHandler

pub trait ProgressHandler {
    fn init(&mut self, steps: i64) { ... }
fn inc(&mut self) { ... }
fn finish(&mut self) { ... } }

Use this trait if you want more detailed information about the progress of operations.

Provided methods

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!

fn inc(&mut self)

We made (small) progress!

fn finish(&mut self)

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

Loading content...

Implementors

impl ProgressHandler for NoProgressInfo[src]

impl ProgressHandler for ProgressInfo[src]

Loading content...