Completely sync a file, pushing/pulling/merging/applying changes `bv_or_db` - Binary view or database to sync with `conflict_handler` - Function to call to resolve snapshot conflicts `name_changeset` - Function to call for naming a pushed changeset, if necessary `progress` - Function to call for progress updates
(
&self,
database: &Database,
conflict_handler: C,
name_changeset: N,
progress: P,
)
| 502 | /// * `name_changeset` - Function to call for naming a pushed changeset, if necessary |
| 503 | /// * `progress` - Function to call for progress updates |
| 504 | pub fn sync_with_progress<C: DatabaseConflictHandler, P: ProgressCallback, N: NameChangeset>( |
| 505 | &self, |
| 506 | database: &Database, |
| 507 | conflict_handler: C, |
| 508 | name_changeset: N, |
| 509 | progress: P, |
| 510 | ) -> Result<(), ()> { |
| 511 | sync::sync_database_with_progress( |
| 512 | database, |
| 513 | self, |
| 514 | conflict_handler, |
| 515 | name_changeset, |
| 516 | progress, |
| 517 | ) |
| 518 | } |
| 519 | |
| 520 | /// Pull updated snapshots from the remote. Merge local changes with remote changes and |
| 521 | /// potentially create a new snapshot for unsaved changes, named via name_changeset. |
no test coverage detected