solana_file_download

Function download_file

Source
pub fn download_file<'a, 'b>(
    url: &str,
    destination_file: &Path,
    use_progress_bar: bool,
    progress_notify_callback: &'a mut DownloadProgressCallbackOption<'b>,
) -> Result<(), String>
Expand description

This callback allows the caller to get notified of the download progress modelled by DownloadProgressRecord Return “true” to continue the download Return “false” to abort the download