The status the mapping carries when `action` has been executed (or refused). Diverged/Unrepresentable persist their status; successful reconciliation returns both sides to `Synchronized`.
(action: ThreeWayAction)
| 91 | /// refused). Diverged/Unrepresentable persist their status; successful |
| 92 | /// reconciliation returns both sides to `Synchronized`. |
| 93 | pub fn status_for(action: ThreeWayAction) -> RefSyncStatus { |
| 94 | match action { |
| 95 | ThreeWayAction::Noop | ThreeWayAction::Import | ThreeWayAction::Export => { |
| 96 | RefSyncStatus::Synchronized |
| 97 | } |
| 98 | ThreeWayAction::Diverged => RefSyncStatus::Diverged, |
| 99 | ThreeWayAction::Unrepresentable => RefSyncStatus::Unrepresentable, |
| 100 | } |
| 101 | } |
| 102 | |
| 103 | #[cfg(test)] |
| 104 | mod tests { |
nothing calls this directly
no outgoing calls
no test coverage detected