pub trait Progress {
// Required methods
fn init(&mut self, size: usize, filename: &str);
fn update(&mut self, size: usize);
fn finish(&mut self);
}
Expand description
This trait is used by users of the lib to implement custom behavior during file downloads
Required Methods§
Sourcefn init(&mut self, size: usize, filename: &str)
fn init(&mut self, size: usize, filename: &str)
At the start of the download The size is the total size in bytes of the file.