actr-runtime -- Business Dispatch Layer
The streamlined actr-runtime contains only pure business dispatch logic,
with no dependency on tokio, WebRTC, wasmtime or other platform-specific libraries,
and can be compiled for both native and wasm32-unknown-unknown targets.
Responsibility Separation
actr-hyper <- Infrastructure layer (transport, wire, signaling, WASM engine ...)
actr-runtime <- Business dispatch layer (ACL + dispatch + lifecycle hooks) <- you are here
actr-framework <- SDK interface layer (trait definitions: Workload, Context, MessageDispatcher)
actr-protocol <- Data definition layer (protobuf types)
Core Types
- [
ActrDispatch] -- HoldsArc<Workload>+ optional ACL, providesdispatch()entry point - [
check_acl_permission] -- Pure function for ACL permission evaluation
Usage Example
use ActrDispatch;
let dispatch = new;
// Lifecycle
dispatch.on_start.await?;
// Message dispatch
let response = dispatch.dispatch.await?;
// Shutdown
dispatch.on_stop.await?;