TaskProgress

Trait TaskProgress 

Source
pub trait TaskProgress {
    // Required method
    fn progress(&self) -> (u64, u64);

    // Provided methods
    fn before(&self) -> Option<String> { ... }
    fn after(&self) -> Option<String> { ... }
}
Expand description

Task is abstraction for one single running task.

Required Methods§

Source

fn progress(&self) -> (u64, u64)

returns the current progress and total progress.

Provided Methods§

Source

fn before(&self) -> Option<String>

returns message to show before progress bar

Source

fn after(&self) -> Option<String>

returns message to show after progress bar

Implementors§