Trait Downloader
Source pub trait Downloader {
// Required method
fn download<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
url: &'life1 str,
output_file: &'life2 Path,
) -> Pin<Box<dyn Future<Output = Result<(), Box<dyn Error>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
// Provided method
fn download_ts_file<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
url: &'life1 str,
output_file: &'life2 mut BufWriter<File>,
pb: &'life3 mut ProgressBar,
) -> Pin<Box<dyn Future<Output = Result<(), Box<dyn Error>>> + Send + 'async_trait>>
where Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait { ... }
}