Skip to main content

ferroui_designer_collaboration/
lib.rs

1//! Replicated designer transactions. The operation set is the durable state: materialization is
2//! deterministic regardless of transport order, and local undo submits a new compensating write.
3//! A host supplies authentication, authorization, durable storage and delivery; this crate does
4//! not open a socket or execute arbitrary code.
5mod document;
6mod model;
7
8pub use document::DocumentReplica;
9pub use model::*;
10
11#[derive(Clone, Debug, PartialEq, Eq)]
12pub struct CollaborationError(pub String);
13impl std::fmt::Display for CollaborationError {
14    fn fmt(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
15        formatter.write_str(&self.0)
16    }
17}
18impl std::error::Error for CollaborationError {}
19pub type Result<T> = std::result::Result<T, CollaborationError>;
20
21#[cfg(test)]
22mod tests;