Skip to main content

download_to_file

Function download_to_file 

Source
pub async fn download_to_file<F>(
    url_or_path: &str,
    destination: impl AsRef<Path>,
    headers: &[HttpHeader],
    timeout_secs: Option<u64>,
    on_event: F,
) -> Result<DownloadStats>
where F: FnMut(DownloadEvent),