##// END OF EJS Templates
rust: add `Progress` trait for progress bars...
Raphaël Gomès -
r52934:3ae7c43a default
parent child Browse files
Show More
@@ -0,0 +1,11
1 //! Progress-bar related things
2
3 /// A generic determinate progress bar trait
4 pub trait Progress: Send + Sync + 'static {
5 /// Set the current position and optionally the total
6 fn update(&self, pos: u64, total: Option<u64>);
7 /// Increment the current position and optionally the total
8 fn increment(&self, step: u64, total: Option<u64>);
9 /// Declare that progress is over and the progress bar should be deleted
10 fn complete(self);
11 }
@@ -35,6 +35,7 pub mod config;
35 pub mod lock;
35 pub mod lock;
36 pub mod logging;
36 pub mod logging;
37 pub mod operations;
37 pub mod operations;
38 pub mod progress;
38 pub mod revset;
39 pub mod revset;
39 pub mod utils;
40 pub mod utils;
40 pub mod vfs;
41 pub mod vfs;
General Comments 0
You need to be logged in to leave comments. Login now