pub trait FileDownloader: Sync + Send {
// Required method
fn download_unpack<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
location: &'life1 FileDownloaderUri,
target_dir: &'life2 Path,
compression_algorithm: Option<CompressionAlgorithm>,
download_event_type: DownloadEvent,
) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
}
Expand description
A file downloader
Required Methods§
Sourcefn download_unpack<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
location: &'life1 FileDownloaderUri,
target_dir: &'life2 Path,
compression_algorithm: Option<CompressionAlgorithm>,
download_event_type: DownloadEvent,
) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn download_unpack<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
location: &'life1 FileDownloaderUri,
target_dir: &'life2 Path,
compression_algorithm: Option<CompressionAlgorithm>,
download_event_type: DownloadEvent,
) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Download and unpack (if necessary) a file on the disk.