Create a new sync engine.
(remote: &'a HttpRemote, cache: &'a mut RemoteState)
| 452 | impl<'a> SyncEngine<'a> { |
| 453 | /// Create a new sync engine. |
| 454 | pub fn new(remote: &'a HttpRemote, cache: &'a mut RemoteState) -> Self { |
| 455 | Self { |
| 456 | remote, |
| 457 | cache, |
| 458 | stats: SyncStats::default(), |
| 459 | } |
| 460 | } |
| 461 | |
| 462 | /// Get the stats from the last sync operation. |
| 463 | pub fn stats(&self) -> &SyncStats { |
nothing calls this directly
no outgoing calls
no test coverage detected