pub struct SyncFacts<P> {
pub row: SyncStatusRow,
pub retry: RetryState,
pub unsent: bool,
pub uploads: Vec<UploadFacts<P>>,
pub queued: bool,
pub downloading: bool,
pub records: Vec<P>,
pub paused: bool,
pub unmetered_only: bool,
pub metered: bool,
}Expand description
What the sync state is computed from, in one committed snapshot.
Fields§
§row: SyncStatusRowWhat the sync loop knows: coven_sync_status’s row.
retry: RetryStateWhat the person’s retry would do: whether sync runs, and the cooldown holding every request.
unsent: boolWhether the send queue holds a write.
uploads: Vec<UploadFacts<P>>The uploads a file waits for that the state can show, in queue order: the first one sending, the first queued one (neither sending nor stored) with no record, and every one with a record. The state shows the first candidate of the highest rank, so no other upload changes it: later sending or waiting ones tie with the first, and a stored one names none.
queued: boolWhether the upload queue holds a file, whether uploads lists it or
not.
downloading: boolWhether this process is downloading a file.
records: Vec<P>Every pending record, in the order the records arose.
paused: boolWhether the app paused trailing uploads.
unmetered_only: boolWhether the app moves files only on unmetered networks.
metered: boolWhether the device’s network is metered, as the store’s watch last said.