pkg/callback/mod.rs
1#[cfg(feature = "indicatif")]
2pub use self::indicatif::IndicatifCallback;
3#[cfg(feature = "indicatif")]
4mod indicatif;
5
6pub trait Callback {
7 fn start_download(&mut self, length: u64, file: &str);
8 fn increment_downloaded(&mut self, downloaded: usize);
9 fn end_download(&mut self);
10
11 fn conflict(&mut self) {}
12
13 // todo: add error handeling
14 fn error(&mut self) {}
15}