pub trait StoreCommands: Send + Sync {
// Required method
fn command(
&self,
caller: &Caller,
command: Value,
kind: Option<String>,
) -> Pending<Result<Value, ActionCallError>> ⓘ;
}Expand description
The device’s one store, as the process of one app reaches its records.
Required Methods§
Sourcefn command(
&self,
caller: &Caller,
command: Value,
kind: Option<String>,
) -> Pending<Result<Value, ActionCallError>> ⓘ
fn command( &self, caller: &Caller, command: Value, kind: Option<String>, ) -> Pending<Result<Value, ActionCallError>> ⓘ
Answer command (collab_types::store::wire::Command, as JSON) from caller with the
store’s Reply, as JSON. Called in the order a connection’s commands arrive, so a change
sent as a run of parts is taken in that order; the answer may come later. A record the
command founds is of kind.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".