TODO: AsRef Download a file from its remote, saving all snapshots to a database in the specified location. Returns a FileContext for opening the file later. `db_path` - File path for saved database `progress_function` - Function to call for progress updates
(
&self,
db_path: S,
progress_function: F,
)
| 442 | /// * `db_path` - File path for saved database |
| 443 | /// * `progress_function` - Function to call for progress updates |
| 444 | pub fn download_with_progress<S, F>( |
| 445 | &self, |
| 446 | db_path: S, |
| 447 | progress_function: F, |
| 448 | ) -> Result<Ref<FileMetadata>, ()> |
| 449 | where |
| 450 | S: BnStrCompatible, |
| 451 | F: ProgressCallback, |
| 452 | { |
| 453 | sync::download_file_with_progress(self, db_path, progress_function) |
| 454 | } |
| 455 | |
| 456 | /// Download a remote file and save it to a BNDB at the given `path`, returning the associated [`FileMetadata`]. |
| 457 | pub fn download_database<S: BnStrCompatible>(&self, path: S) -> Result<Ref<FileMetadata>, ()> { |
no test coverage detected