Skip to main content

classify_outcomes

Function classify_outcomes 

Source
pub fn classify_outcomes(results: &[Result<(), String>]) -> AutoSyncOutcome
Expand description

Classify per-surface push results into one AutoSyncOutcome. A 401 anywhere wins — a revoked credential makes every other signal moot and is the only failure the user must act on. Then a 402 (the account is gated); otherwise total failure means the network is down; anything else counts as synced.