pub trait Store: Send + Sync {
// Required methods
fn apply(&self, op: &Op) -> Result<(), Error>;
fn state(&self) -> Result<Option<State>, Error>;
fn heartbeat(&self, node: &str, version: u64) -> Result<Vec<String>, Error>;
}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".