SharedEdit
enum · ferroui-designer-collaboration · v0.5.0
enum SharedEdit
Each operation is one atomic transaction. A source replacement is compare-and-set: it is never allowed to silently erase unrelated concurrent edits. Structural commands use the source-preserving AST engine and are re-evaluated after out-of-order delivery.
Members
SetAttribute
SetAttribute { node: SharedNodeId, name: String, value: String }
RemoveAttribute
RemoveAttribute { node: SharedNodeId, name: String }
UndoAttribute
UndoAttribute { node: SharedNodeId, name: String, expected_writer: OperationId, value: Option<String> }
Compensate only if the named operation still owns this property at replay time. Operation identity matters even when another writer chose the same value.
InsertChild
InsertChild { parent: SharedNodeId, index: usize, source: String }
RemoveNode
RemoveNode { node: SharedNodeId }
MoveNode
MoveNode { node: SharedNodeId, parent: SharedNodeId, index: usize }
ReplaceSource
ReplaceSource { expected_source: String, source: String }
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedDeserializeOwnedSameCloneDebugStructuralPartialEqPartialEqEqSerializeDeserialize<'de>
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.