/// Committed data changed before an asynchronous edit could publish. #[derive(Debug, Clone, Copy, PartialEq, Eq, thiserror::Error)] #[error("Optimistic lock failed: Committed data has changed during async operation")] pub struct DraftConflict; /// Another transaction is already staging a change to one of the layers asked for. #[derive(Debug, Clone, PartialEq, Eq, thiserror::Error)] #[error("configuration layer {layer} is being changed elsewhere")] pub struct DraftBusy { /// The layer that was already claimed. pub layer: &'static str, }