MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / description

Method description

atomic-core/src/crdt/apply/conflict.rs:140–151  ·  view source on GitHub ↗

Returns a short description of this conflict kind.

(&self)

Source from the content-addressed store, hash-verified

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
154impl fmt::Display for ConflictKind {

Callers 3

buildMethod · 0.45
test_conflict_builderFunction · 0.45

Calls

no outgoing calls

Tested by 2

test_conflict_builderFunction · 0.36