Trait FileDownloader

Source
pub trait FileDownloader: Md5DownloadLink {
    // Provided method
    fn find_file_locally_or_download_into<'life0, 'async_trait>(
        &'life0 self,
        directory: impl 'async_trait + AsRef<Path> + Send + Sync,
    ) -> Pin<Box<dyn Future<Output = Result<PathBuf, DownloadError>> + Send + 'async_trait>>
       where Self: Sync + 'async_trait,
             'life0: 'async_trait { ... }
}

Provided Methods§

Source

fn find_file_locally_or_download_into<'life0, 'async_trait>( &'life0 self, directory: impl 'async_trait + AsRef<Path> + Send + Sync, ) -> Pin<Box<dyn Future<Output = Result<PathBuf, DownloadError>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

Obtain the associated PBF file locally, downloading if necessary. By default, this uses the find_or_download function provided by this crate.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§