pub trait Store: Send + Sync {
// Required methods
fn apply(&self, op: &Op) -> Result<()>;
fn state(&self) -> Result<Option<State>>;
fn heartbeat(&self, node: &str, version: u64) -> Result<Vec<String>>;
}Expand description
Where the shared document lives.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".