Returns a short description of this conflict kind.
(&self)
| 138 | |
| 139 | /// Returns a short description of this conflict kind. |
| 140 | pub fn description(&self) -> &'static str { |
| 141 | match self { |
| 142 | ConflictKind::ConcurrentInsert => "concurrent insertion at same position", |
| 143 | ConflictKind::DeleteModify => "entity deleted and modified concurrently", |
| 144 | ConflictKind::MoveDelete => "file moved and deleted concurrently", |
| 145 | ConflictKind::DuplicatePath => "multiple files at same path", |
| 146 | ConflictKind::OrderingCycle => "circular ordering dependency", |
| 147 | ConflictKind::ConcurrentModify => "concurrent modifications to same entity", |
| 148 | ConflictKind::DeletedReference => "reference to deleted entity", |
| 149 | ConflictKind::RestoreNonDeleted => "restore of non-deleted entity", |
| 150 | } |
| 151 | } |
| 152 | } |
| 153 | |
| 154 | impl fmt::Display for ConflictKind { |
no outgoing calls