Function solana_download_utils::download_file
source · pub fn download_file<'a, 'b>(
url: &str,
destination_file: &Path,
use_progress_bar: bool,
progress_notify_callback: &'a mut Option<Box<dyn FnMut(&DownloadProgressRecord) -> bool + '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