Function dispatch
pub fn dispatch(
doc: &mut AutoCommit,
action: &dyn Action,
encoded: EncodedAction,
transport: &mut dyn ActionTransport,
) -> Result<Dispatched, ActionError>Expand description
The locus-aware front door, routing action per its
ExecutionLocus: ClientLocal →
apply_local then transport.replicate; ServerPreferred →
transport.submit_to_host, refusing when no authoritative host is
reachable. The envelope’s id/timestamp are fixed before submission.
§Errors
See apply_local.